Simplify the constexpr declarations of the GLM_META_PROG_HELPERS

- No repetition
- Half the size
This commit is contained in:
Jesse Talavera-Greenberg
2015-07-20 20:15:45 -04:00
parent 6d1ddc8980
commit c2078afc12
18 changed files with 59 additions and 167 deletions

View File

@@ -66,13 +66,8 @@ namespace glm
typedef T value_type;
# ifdef GLM_META_PROG_HELPERS
# if GLM_HAS_CONSTEXPR
static GLM_CONSTEXPR length_t components = 4;
static GLM_CONSTEXPR precision prec = P;
# else
static const length_t components = 4;
static const precision prec = P;
# endif//GLM_HAS_CONSTEXPR
static GLM_CONSTEXPR_MAYBE length_t components = 4;
static GLM_CONSTEXPR_MAYBE precision prec = P;
# endif//GLM_META_PROG_HELPERS
public: