Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

Closed Unassigned: U #define in windows_compat.h not playing nice with boost [235]

$
0
0
compat\windows_compat.h has a
#define U(x) _XPLATSTR(x)

wihch interferes with boost 1.55 (at least) iostreams\details\access_control.hpp, which has
// Implements protected inheritance.
template<typename U>
struct prot_ : protected U
{
prot_() { }
template<typename V> prot_(V v) : U(v) { }
};

My workaround is to put an
#undef U
right after casablanca's #includes
Comments: _TURN_OFF_PLATFORM_STRING can be used to turn off the 'U' macro if causing conflicts.

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>