38 lines
1.2 KiB
C++
38 lines
1.2 KiB
C++
#pragma once
|
|
|
|
|
|
//
|
|
// only ever include DdsWrap.hpp instead of dds/dds.hpp!
|
|
//
|
|
// - visual studio-mechanism for isystem (external includes), that is avoid warnings in third-party-code, is not
|
|
// working with (our) cmake so far.
|
|
// - so we need to disable all warnings from dds-vendor "by hand". this is done
|
|
// - here, while including dds-headers directly
|
|
// - in all wrapper-headers around dds-generated files (which include dds indirectly as well obviously)
|
|
// - see genVendorWrap for that.
|
|
|
|
#ifdef _WIN32
|
|
#pragma warning(push, 0)
|
|
#endif
|
|
|
|
#include <dds/dds.hpp>
|
|
|
|
#ifdef _WIN32
|
|
#pragma warning(pop)
|
|
#endif
|
|
|
|
// the ostream-operator (operator<<) for InstanceHandle is declared in connext and cyclone nearly the same way
|
|
// - connext: ndds/hpp/dds/core/InstanceHandle.hpp
|
|
// - cyclone: ddscxx/dds/core/InstanceHandle.hpp
|
|
// but connext implements it inline (delegates to rhs.delegate()), while cyclone does not.
|
|
// this seems to be the reason, for that the operator is not usable with cyclone at first glance.
|
|
// but we simply need to make it known in the namespace for ADL (argument-dependent-lookup) to work.
|
|
|
|
namespace dds {
|
|
namespace core {
|
|
|
|
using ::operator<<;
|
|
|
|
}
|
|
} // namespace dds
|