Revert PR #1107 due to potential ill-formed NDR

This commit is contained in:
Stephen Xu 2023-03-21 15:52:57 +00:00
parent efec5db081
commit 7e80d9582e
No known key found for this signature in database
GPG Key ID: F7A92E1474FAB7BF

View File

@ -212,16 +212,14 @@
// N2346
#if GLM_COMPILER & GLM_COMPILER_CLANG
# define GLM_HAS_DEFAULTED_FUNCTIONS __has_feature(cxx_defaulted_functions)
#elif GLM_COMPILER & GLM_COMPILER_CUDA
// Do not use defaulted functions for CUDA compiler when function qualifiers are present
# define GLM_HAS_DEFAULTED_FUNCTIONS 0
#elif GLM_LANG & GLM_LANG_CXX11_FLAG
# define GLM_HAS_DEFAULTED_FUNCTIONS 1
#else
# define GLM_HAS_DEFAULTED_FUNCTIONS ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (\
((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC12)) || \
((GLM_COMPILER & GLM_COMPILER_INTEL)) || \
((GLM_COMPILER & GLM_COMPILER_HIP))))
(GLM_COMPILER & GLM_COMPILER_CUDA)) || \
((GLM_COMPILER & GLM_COMPILER_HIP)))
#endif
// N2118