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
Error states /opt/boost/1_74_0/include/boost/core/noinit_adaptor.hpp:58:10: error: expected a class name after '~' to name a destructor p->~U();
Compiling on MacOS with Clang 10.0.0., with the -std=c++20 flag.
I'm not sure why, but the error disappear when I replace the template class "U", with any other letter like "T", so that it looks like this:
Thanks for the quick response, it turns out it is indeed a macro defined by cpprestsdk in basic_types.h.
I guess this issue can be closed as it isn't a boost issue.
Error states
/opt/boost/1_74_0/include/boost/core/noinit_adaptor.hpp:58:10: error: expected a class name after '~' to name a destructor p->~U();
Compiling on MacOS with Clang 10.0.0., with the -std=c++20 flag.
I'm not sure why, but the error disappear when I replace the template class "U", with any other letter like "T", so that it looks like this:
instead of
Is this issue specific to my system? I can't seem to find anyone else having this problem.
EDIT:
Fixed by placing
#define _TURN_OFF_PLATFORM_STRING
at the top of my main.c file.Referenced in cpprestsdk issue 1214
The text was updated successfully, but these errors were encountered: