File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 96
96
<ClCompile >
97
97
<WarningLevel >Level3</WarningLevel >
98
98
<PrecompiledHeader >NotUsing</PrecompiledHeader >
99
- <AdditionalOptions >/utf-8 /std:c++17 %(AdditionalOptions)</AdditionalOptions >
99
+ <AdditionalOptions >/utf-8 /Zc:__cplusplus / std:c++17 %(AdditionalOptions)</AdditionalOptions >
100
100
<DisableSpecificWarnings >4018;4221;4244;4267;4334;4715;4805;4834</DisableSpecificWarnings >
101
101
<TreatWarningAsError >true</TreatWarningAsError >
102
102
<PreprocessorDefinitions >_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING;_SILENCE_CXX17_OLD_ALLOCATOR_MEMBERS_DEPRECATION_WARNING;ZMQ_STATIC;NOMINMAX;WIN32;HAVE_CONFIG_H;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;_CONSOLE;_WIN32_WINNT=0x0601;_WIN32_IE=0x0501;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions >
Original file line number Diff line number Diff line change 19
19
20
20
// Assumption: We assume a C++17 (ISO/IEC 14882:2017) compiler (minimum requirement).
21
21
// Example(s): We assume the presence of C++17 features everywhere :-)
22
- // Note: MSVC does not report the expected __cplusplus value due to legacy
23
- // reasons.
24
- #if !defined(_MSC_VER)
25
22
// ISO Standard C++17 [cpp.predefined]p1:
26
23
// "The name __cplusplus is defined to the value 201703L when compiling a C++
27
24
// translation unit."
28
25
static_assert (__cplusplus >= 201703L , " C++17 standard assumed" );
29
- #endif
30
26
31
27
// Assumption: We assume the floating-point types to fulfill the requirements of
32
28
// IEC 559 (IEEE 754) standard.
You can’t perform that action at this time.
0 commit comments