diff --git a/stan/math/opencl/kernel_generator/load.hpp b/stan/math/opencl/kernel_generator/load.hpp index 799cdb551a0..ae0f7d1eb6d 100644 --- a/stan/math/opencl/kernel_generator/load.hpp +++ b/stan/math/opencl/kernel_generator/load.hpp @@ -49,7 +49,7 @@ class load_ * Creates a deep copy of this expression. * @return copy of \c *this */ - inline load_ deep_copy() const & { return load_(a_); } + inline load_ deep_copy() const& { return load_(a_); } inline load_ deep_copy() && { return load_(std::forward(a_)); } /** diff --git a/stan/math/prim/fun/pow.hpp b/stan/math/prim/fun/pow.hpp index da61000e00f..29516b96893 100644 --- a/stan/math/prim/fun/pow.hpp +++ b/stan/math/prim/fun/pow.hpp @@ -9,24 +9,6 @@ namespace stan { namespace math { -// This overload is required becuase MINGW32 does not include the -// specialization std::pow(double, int) as required by the C++11 -// standard library interface specification. Use with other compilers -// than MINGW32 would introduce an ambiguity with the standard library. -#if __MINGW32__ -/** - * Return the first argument raised to the power of the second - * argument. - * - * @param x base - * @param y exponent - * @return base raised to the power of the exponent - */ -inline double pow(double x, int y) { - return std::pow(x, static_cast(y)); -} -#endif - namespace internal { /** diff --git a/test/unit/math/mix/fun/pow_test.cpp b/test/unit/math/mix/fun/pow_test.cpp index 4a48fa235b7..b08e86ad8f2 100644 --- a/test/unit/math/mix/fun/pow_test.cpp +++ b/test/unit/math/mix/fun/pow_test.cpp @@ -36,8 +36,8 @@ TEST(mathMixScalFun, powInstantiations) { TEST(mathMixScalFun, pow) { auto f = [](const auto& x1, const auto& x2) { - using std::pow; using stan::math::pow; + using std::pow; return pow(x1, x2); }; stan::test::expect_ad(f, -0.4, 0.5); @@ -57,8 +57,8 @@ TEST(mathMixScalFun, pow) { } TEST(mathMixFun, complexPow) { auto f = [](const auto& x1, const auto& x2) { - using std::pow; using stan::math::pow; + using std::pow; return pow(x1, x2); }; stan::test::ad_tolerances tols;