Merge pull request #2758 from jcarpent/topic/c++11
BUG - use noexcept only for C++11 and morepull/2761/head
commit
a9f82dbe0b
|
@ -306,7 +306,11 @@ static const ai_real ai_epsilon = (ai_real) 0.00001;
|
||||||
#define AI_MAX_ALLOC(type) ((256U * 1024 * 1024) / sizeof(type))
|
#define AI_MAX_ALLOC(type) ((256U * 1024 * 1024) / sizeof(type))
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
|
# if __cplusplus >= 201103L // C++11
|
||||||
# define AI_NO_EXCEPT noexcept
|
# define AI_NO_EXCEPT noexcept
|
||||||
|
# else
|
||||||
|
# define AI_NO_EXCEPT
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
# if (_MSC_VER >= 1915 )
|
# if (_MSC_VER >= 1915 )
|
||||||
# define AI_NO_EXCEPT noexcept
|
# define AI_NO_EXCEPT noexcept
|
||||||
|
|
Loading…
Reference in New Issue