use proper C++11 check for noexcept attribute

This commit is contained in:
daan 2020-01-16 15:58:48 -08:00
parent 7a9502973d
commit a0bee081dd
2 changed files with 4 additions and 4 deletions

View File

@ -111,7 +111,7 @@
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile> <ClCompile>
<WarningLevel>Level4</WarningLevel> <WarningLevel>Level2</WarningLevel>
<Optimization>Disabled</Optimization> <Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck> <SDLCheck>true</SDLCheck>
<ConformanceMode>true</ConformanceMode> <ConformanceMode>true</ConformanceMode>

View File

@ -15,10 +15,10 @@ terms of the MIT license. A copy of the license can be found in the file
// ------------------------------------------------------ // ------------------------------------------------------
#ifdef __cplusplus #ifdef __cplusplus
#if (__GNUC__ <= 5) || (_MSC_VER <= 1900) #if (__cplusplus >= 201103L) || (_MSC_VER > 1900) // C++11
#define mi_attr_noexcept throw()
#else
#define mi_attr_noexcept noexcept #define mi_attr_noexcept noexcept
#else
#define mi_attr_noexcept throw()
#endif #endif
#else #else
#define mi_attr_noexcept #define mi_attr_noexcept