Skip to content

Commit

Permalink
Update setup.hpp
Browse files Browse the repository at this point in the history
Enable 'if constexpr' when c++17
  • Loading branch information
SrirachaSource authored Mar 31, 2019
1 parent 503a229 commit 658bbdb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions glm/detail/setup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 658bbdb

Please sign in to comment.