You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[2024-02-01T10:08:41.754Z] my.cpp(73,16): error C2593: 'operator <<' is ambiguous
[2024-02-01T10:08:41.754Z] C:\cnn0\ea4174\1\include\ddscxx\dds/core/detail/TInstanceHandleImpl.hpp(105,22): message : could be 'std::ostream &operator <<(std::ostream &,const dds::core::TInstanceHandle<org::eclipse::cyclonedds::core::InstanceHandleDelegate> &)' [found using argument-dependent lookup]
[2024-02-01T10:08:41.754Z] C:\cnn0\ea4174\1\include\ddscxx\dds/core/detail/TInstanceHandleImpl.hpp(112,22): message : or 'std::ostream &operator <<(std::ostream &,const dds::core::TInstanceHandle<org::eclipse::cyclonedds::core::InstanceHandleDelegate>)' [found using argument-dependent lookup]
[2024-02-01T10:08:41.754Z] C:\cnn0\c86a9f\1\src\ddkit\ddcltsvc\SessionReal.cpp(73,16): message : while trying to match the argument list '(std::ostringstream, dds::core::InstanceHandle)'
Building with visual studio 2019.
Why does a InstanceHandle have two ostream operators in Cyclonedds?
(When i remove the one marked with "workaround" then it works)
Hi,
i am trying to compile the current master 2024-02-01 but end up in a compile error.
Using: CycloneDDS:
1c9bc19
, CycloneDDS-CXX:e41e5c8
Code (my.cpp, with cyclone 0.10.4 this works, but not master):
dds::core::InstanceHandle handle = myDomainParticipant.instance_handle(); std::ostringstream s; s << handle; // Compile Error std::string m_sessionId = s.str();
With:
Building with visual studio 2019.
Why does a InstanceHandle have two ostream operators in Cyclonedds?
(When i remove the one marked with "workaround" then it works)
https://github.com/eclipse-cyclonedds/cyclonedds-cxx/blob/e41e5c87192423e3443b68ebed064f4debdcbea6/src/ddscxx/include/dds/core/detail/TInstanceHandleImpl.hpp#L105C1-L105C3
The text was updated successfully, but these errors were encountered: