Skip to content

Commit 3ade9b1

Browse files
authored
Use const instead of constexpr in Ellipsoid constructor (#366)
Signed-off-by: Ashton Larkin <42042756+adlarkin@users.noreply.github.com>
1 parent fa67ea8 commit 3ade9b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/ignition/math/detail/Ellipsoid.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ std::optional< MassMatrix3<T> > Ellipsoid<T>::MassMatrix() const
9696
template<typename T>
9797
T Ellipsoid<T>::Volume() const
9898
{
99-
constexpr T kFourThirdsPi = 4. * IGN_PI / 3.;
99+
const T kFourThirdsPi = 4. * IGN_PI / 3.;
100100
return kFourThirdsPi * this->radii.X() * this->radii.Y() * this->radii.Z();
101101
}
102102

0 commit comments

Comments
 (0)