summaryrefslogtreecommitdiff
path: root/boost/math/special_functions/pow.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/math/special_functions/pow.hpp')
-rw-r--r--boost/math/special_functions/pow.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/boost/math/special_functions/pow.hpp b/boost/math/special_functions/pow.hpp
index 5423e9c8e4..494f721d05 100644
--- a/boost/math/special_functions/pow.hpp
+++ b/boost/math/special_functions/pow.hpp
@@ -13,6 +13,7 @@
#define BOOST_MATH_POW_HPP
+#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/policies/policy.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/math/tools/promotion.hpp>
@@ -22,6 +23,10 @@
namespace boost {
namespace math {
+#ifdef BOOST_MSVC
+#pragma warning(push)
+#pragma warning(disable:4702) // Unreachable code, only triggered in release mode and /W4
+#endif
namespace detail {
@@ -132,6 +137,9 @@ template <int N, typename T>
inline typename tools::promote_args<T>::type pow(T base)
{ return pow<N>(base, policies::policy<>()); }
+#ifdef BOOST_MSVC
+#pragma warning(pop)
+#endif
} // namespace math
} // namespace boost