Add detection for noexcept

This commit is contained in:
Jesse Talavera-Greenberg 2015-09-11 17:13:01 -04:00
parent 7b5971c87c
commit c965ac42d6

View File

@ -670,6 +670,18 @@
((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC2012))))
#endif
// N3050 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3050.html
#if GLM_COMPILER & (GLM_COMPILER_LLVM | GLM_COMPILER_APPLE_CLANG)
# define GLM_HAS_NOEXCEPT __has_feature(cxx_noexcept)
#elif GLM_LANG & GLM_LANG_CXX11_FLAG
# define GLM_HAS_NOEXCEPT 1
#else
# define GLM_HAS_NOEXCEPT ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (\
((GLM_COMPILER & GLM_COMPILER_INTEL) && (GLM_COMPILER >= GLM_COMPILER_INTEL14)) || \
((GLM_COMPILER & GLM_COMPILER_GCC) && (GLM_COMPILER >= GLM_COMPILER_GCC46)) || \
((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC2015))))
#endif
//
#if GLM_LANG & GLM_LANG_CXX11_FLAG
# define GLM_HAS_ASSIGNABLE 1