From faacf0520dd201e5a35e35a0bdc6544d91c52692 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Tue, 7 Jul 2015 18:42:01 +0100 Subject: [PATCH] Fix function template specialization definition. --- include/boost/math/special_functions/relative_difference.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/math/special_functions/relative_difference.hpp b/include/boost/math/special_functions/relative_difference.hpp index 465184ae7..baf231b03 100644 --- a/include/boost/math/special_functions/relative_difference.hpp +++ b/include/boost/math/special_functions/relative_difference.hpp @@ -71,7 +71,7 @@ namespace boost{ #if defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) template <> - inline double relative_difference(double a, double b) + inline typename boost::math::tools::promote_args::type relative_difference(const double& arg_a, const double& arg_b) { BOOST_MATH_STD_USING //