Skip to content

Commit f29b7cc

Browse files
committed
Use tag type idiom
1 parent 9d67b93 commit f29b7cc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/boost/math/special_functions/detail/erf_inv.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ T erf_inv_imp(const T& p, const T& q, const Policy& pol, const std::integral_con
317317
//
318318
// Generic version, get a guess that's accurate to 64-bits (10^-19)
319319
//
320-
T guess = erf_inv_imp(p, q, pol, std::integral_constant<int, 64>());
320+
using tag_type = std::integral_constant<int, 64>;
321+
T guess = erf_inv_imp(p, q, pol, tag_type());
321322
T result;
322323
//
323324
// If T has more bit's than 64 in it's mantissa then we need to iterate,

0 commit comments

Comments
 (0)