mark constexpr all generic functions

This commit is contained in:
BlackMATov
2021-02-24 04:41:23 +07:00
parent e95b9cf898
commit 7c0427ce76
8 changed files with 97 additions and 97 deletions

View File

@@ -355,7 +355,7 @@ namespace vmath_hpp
template < typename T >
[[nodiscard]] std::enable_if_t<std::is_floating_point_v<T>, T>
normalize(T x) noexcept {
constexpr normalize(T x) noexcept {
return x * rlength(x);
}