Skip to content

Commit dc23aa3

Browse files
committed
Disable further promotion with forwarding policy
1 parent c49115c commit dc23aa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/math/distributions/logistic.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ namespace boost { namespace math {
149149

150150
using promoted_real_type = typename policies::evaluation<RealType, Policy>::type;
151151
promoted_real_type power = (static_cast<promoted_real_type>(x) - static_cast<promoted_real_type>(location)) / static_cast<promoted_real_type>(scale);
152-
return logistic_sigmoid(power, Policy());
152+
return logistic_sigmoid(power, policies::make_forwarding_policy_t<Policy>());
153153
}
154154

155155
template <class RealType, class Policy>
@@ -252,7 +252,7 @@ namespace boost { namespace math {
252252

253253
using promoted_real_type = typename policies::evaluation<RealType, Policy>::type;
254254
promoted_real_type power = (static_cast<promoted_real_type>(location) - static_cast<promoted_real_type>(x)) / static_cast<promoted_real_type>(scale);
255-
return logistic_sigmoid(power, Policy());
255+
return logistic_sigmoid(power, policies::make_forwarding_policy_t<Policy>());
256256
}
257257

258258
template <class RealType, class Policy>

0 commit comments

Comments
 (0)