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
A workaround for the end user is to add /Zc:__cplusplus at the command line, which is available in VS 15.7 onwards.
As far as I can tell, MSVC always compiles in C++14 mode, so the check could just be:
#if __cplusplus > 201103L || defined _MSC_VER
#defineTL_EXPECTED_CXX14
#endif
In case you want to be extra sure, according to this documentation, the _MSVC_LANG macro does give the intended language version. So this could be updated to something like:
MSVC's implementation of
__cplusplus
was broken (always being 199711L) until 2018. Thus, the following code does not setTL_EXPECTED_CXX14
:A workaround for the end user is to add
/Zc:__cplusplus
at the command line, which is available in VS 15.7 onwards.As far as I can tell, MSVC always compiles in C++14 mode, so the check could just be:
In case you want to be extra sure, according to this documentation, the
_MSVC_LANG
macro does give the intended language version. So this could be updated to something like:The text was updated successfully, but these errors were encountered: