summaryrefslogtreecommitdiff
path: root/boost/math/special_functions/legendre.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/math/special_functions/legendre.hpp')
-rw-r--r--boost/math/special_functions/legendre.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/math/special_functions/legendre.hpp b/boost/math/special_functions/legendre.hpp
index 79e9756..1a2ef5d 100644
--- a/boost/math/special_functions/legendre.hpp
+++ b/boost/math/special_functions/legendre.hpp
@@ -71,7 +71,7 @@ T legendre_imp(unsigned l, T x, const Policy& pol, bool second = false)
} // namespace detail
template <class T, class Policy>
-inline typename tools::promote_args<T>::type
+inline typename boost::enable_if_c<policies::is_policy<Policy>::value, typename tools::promote_args<T>::type>::type
legendre_p(int l, T x, const Policy& pol)
{
typedef typename tools::promote_args<T>::type result_type;
@@ -90,7 +90,7 @@ inline typename tools::promote_args<T>::type
}
template <class T, class Policy>
-inline typename tools::promote_args<T>::type
+inline typename boost::enable_if_c<policies::is_policy<Policy>::value, typename tools::promote_args<T>::type>::type
legendre_q(unsigned l, T x, const Policy& pol)
{
typedef typename tools::promote_args<T>::type result_type;