cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

constexpr in SafeInt3.hpp kills the compiling on vc2013

Open bbqz007 opened this issue 4 years ago • 3 comments

Release\include\cpprest\details\SafeInt3.hpp constexpr SafeInt(const SafeInt<T, E>& u) SAFEINT_CPP_THROW = default;

and i find CPPREST_CONSTEXPR by which cpprest solves the problem that vc120 does not fully support constexpr.

bbqz007 avatar Apr 07 '21 04:04 bbqz007

you have to upgrade your VS to 2015 update 3 or later though

ghost avatar Apr 08 '21 03:04 ghost

yes, i know the vs2015 support constexpr. and cpprestsdk project uses CPPREST_CONSTEXPR to solves the problems cause of constexpr. i think replace that with CPPREST_CONSTEXPR to make more friendly to the lower versions of vs, just like this project did before.

bbqz007 avatar Apr 18 '21 18:04 bbqz007

I would like to compile against vc120 too. Commenting out this one line seems to work so would it be possible to add a directive for conditional compilation of this?

jlaurila avatar Jun 07 '21 07:06 jlaurila