Fixed GLM_FORCE_UNRESTRICTED_GENTYPE #543
This commit is contained in:
parent
e77c300e4c
commit
ff0054490d
@ -359,7 +359,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// N2346
|
// N2346
|
||||||
#if GLM_COMPILER & GLM_COMPILER_CLANG
|
#if defined(GLM_FORCE_UNRESTRICTED_GENTYPE)
|
||||||
|
# define GLM_HAS_DEFAULTED_FUNCTIONS 0
|
||||||
|
#elif GLM_COMPILER & GLM_COMPILER_CLANG
|
||||||
# define GLM_HAS_DEFAULTED_FUNCTIONS __has_feature(cxx_defaulted_functions)
|
# define GLM_HAS_DEFAULTED_FUNCTIONS __has_feature(cxx_defaulted_functions)
|
||||||
#elif GLM_LANG & GLM_LANG_CXX11_FLAG
|
#elif GLM_LANG & GLM_LANG_CXX11_FLAG
|
||||||
# define GLM_HAS_DEFAULTED_FUNCTIONS 1
|
# define GLM_HAS_DEFAULTED_FUNCTIONS 1
|
||||||
@ -684,7 +686,7 @@
|
|||||||
# define GLM_VECTOR_CALL
|
# define GLM_VECTOR_CALL
|
||||||
#endif//GLM_COMPILER
|
#endif//GLM_COMPILER
|
||||||
|
|
||||||
#if GLM_HAS_DEFAULTED_FUNCTIONS && !defined(GLM_FORCE_UNRESTRICTED_GENTYPE)
|
#if GLM_HAS_DEFAULTED_FUNCTIONS
|
||||||
# define GLM_DEFAULT = default
|
# define GLM_DEFAULT = default
|
||||||
# ifdef GLM_FORCE_NO_CTOR_INIT
|
# ifdef GLM_FORCE_NO_CTOR_INIT
|
||||||
# define GLM_DEFAULT_CTOR = default
|
# define GLM_DEFAULT_CTOR = default
|
||||||
|
Loading…
x
Reference in New Issue
Block a user