Update setup.hpp

Enable 'if constexpr' when c++17
master
Tim R ago%!(EXTRA string=6 years) committed by GitHub
parent 503a22960a
commit 658bbdb525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      glm/detail/setup.hpp

@ -289,6 +289,11 @@
#if GLM_HAS_CONSTEXPR
# define GLM_CONSTEXPR constexpr
#if GLM_LANG_CXX17_FLAG
# define GLM_IF_CONSTEXPR constexpr
#else
# define GLM_IF_CONSTEXPR
#endif
#else
# define GLM_CONSTEXPR
#endif

Loading…
Cancel
Save