libp2p / cpp-libp2p

C++17 implementation of libp2p
Apache License 2.0
364 stars 99 forks source link

mismatched tags on IdentityManager prototype #162

Closed saurik closed 3 years ago

saurik commented 3 years ago

https://github.com/libp2p/cpp-libp2p/blob/6ee8c98862157216ff20e76754bfd76f709777dd/include/libp2p/peer/identity_manager.hpp#L24

https://github.com/libp2p/cpp-libp2p/blob/6ee8c98862157216ff20e76754bfd76f709777dd/include/libp2p/protocol/gossip/gossip.hpp#L34

In file included from cpp-libp2p/src/protocol/gossip/impl/gossip_core.cpp:13:
./cpp-libp2p/include/libp2p/peer/identity_manager.hpp:24:3: error: 'IdentityManager' defined as a struct here but previously declared as a class; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Werror,-Wmismatched-tags]
  struct IdentityManager {
  ^
./cpp-libp2p/include/libp2p/protocol/gossip/gossip.hpp:34:5: note: did you mean struct here?
    class IdentityManager;
    ^~~~~
    struct
1 error generated.
turuslan commented 3 years ago

Thank you for contribution!