use proper C++11 check for noexcept attribute
This commit is contained in:
parent
7a9502973d
commit
a0bee081dd
@ -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>
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user