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

New Post: Single-character preprocessor macro in cpprest/details/basic_types.h breaks Boost::iostreams

$
0
0
It doesn't play nicely with Intel TBB either. That platform-dependent string is really, really useful for unit tests though. We just made a new macro in another header:

ifndef USTR_HPP

define USTR_HPP

include "cpprest/details/basic_types.h"

namespace utility
{
#define USTR(x) _XPLATSTR(x)
}// namespace utility

endif

You can then just search-replace to use USTR. Still short and easy to type.

Damien

Viewing all articles
Browse latest Browse all 4845

Trending Articles