Skip to content

Commit c217ba8

Browse files
committed
std::sqrt() is not constexpr now
1 parent de37149 commit c217ba8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/volume_calc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ void VolumeCalculation::execute(CalcResults& master_results) const
186186
p.r() = {uniform_distribution(lower_left_.x, upper_right_.x, &seed),
187187
uniform_distribution(lower_left_.y, upper_right_.y, &seed),
188188
uniform_distribution(lower_left_.z, upper_right_.z, &seed)};
189-
constexpr double sqrt3_1 = 1. / std::sqrt(3.);
189+
const double sqrt3_1 = 1. / std::sqrt(3.);
190190
p.u() = {sqrt3_1, sqrt3_1, sqrt3_1};
191191

192192
// TO REVIEWER: THE SWITCH IS TRANSFERED TO score_hit()

0 commit comments

Comments
 (0)