Skip to content

Commit

Permalink
std::pow is not constexpr?
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanoHao committed Mar 27, 2020
1 parent 89fc078 commit 1f9faa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ps2tt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ inline Solution QuadSolve(Coeff1 coeff)
: (delta ? T{-b / (2 * a)} : T{});
}

constexpr double curt(double x)
inline double curt(double x)
{
return x < 0 ? -pow(-x, 1.0 / 3) : pow(x, 1.0 / 3);
}
Expand Down

0 comments on commit 1f9faa9

Please sign in to comment.