diff --git a/glm/detail/func_exponential.inl b/glm/detail/func_exponential.inl index 5267ea3e..907989f4 100644 --- a/glm/detail/func_exponential.inl +++ b/glm/detail/func_exponential.inl @@ -90,6 +90,9 @@ namespace detail return detail::functor1::call(log, x); } +# if GLM_HAS_CXX11_STL + using std::exp2; +# else //exp2, ln2 = 0.69314718055994530941723212145818f template GLM_FUNC_QUALIFIER genType exp2(genType x) @@ -98,6 +101,7 @@ namespace detail return std::exp(static_cast(0.69314718055994530941723212145818) * x); } +# endif template GLM_FUNC_QUALIFIER vec exp2(vec const& x)