From c4a050ff848898ee3f97d18744529483b6d3618a Mon Sep 17 00:00:00 2001 From: Ashton Larkin <42042756+adlarkin@users.noreply.github.com> Date: Wed, 12 Jan 2022 17:51:05 -0700 Subject: [PATCH] Use const instead of constexpr in Ellipsoid constructor Signed-off-by: Ashton Larkin <42042756+adlarkin@users.noreply.github.com> --- include/ignition/math/detail/Ellipsoid.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ignition/math/detail/Ellipsoid.hh b/include/ignition/math/detail/Ellipsoid.hh index 59af817bb..bc1c16f84 100644 --- a/include/ignition/math/detail/Ellipsoid.hh +++ b/include/ignition/math/detail/Ellipsoid.hh @@ -96,7 +96,7 @@ std::optional< MassMatrix3 > Ellipsoid::MassMatrix() const template T Ellipsoid::Volume() const { - constexpr T kFourThirdsPi = 4. * IGN_PI / 3.; + const T kFourThirdsPi = 4. * IGN_PI / 3.; return kFourThirdsPi * this->radii.X() * this->radii.Y() * this->radii.Z(); }