diff --git a/geometry/r3x3_matrix.hpp b/geometry/r3x3_matrix.hpp index 0956ff42cb..75a45d3491 100644 --- a/geometry/r3x3_matrix.hpp +++ b/geometry/r3x3_matrix.hpp @@ -106,13 +106,16 @@ class R3x3Matrix final { friend R3Element> operator*(R3Element const& left, R3x3Matrix const& right); - template + template + requires quantity friend R3x3Matrix> operator*(LS const& left, R3x3Matrix const& right); - template + template + requires quantity friend R3x3Matrix> operator*(R3x3Matrix const& left, RS const& right); - template + template + requires quantity friend R3x3Matrix> operator/(R3x3Matrix const& left, RS const& right); @@ -160,11 +163,11 @@ R3x3Matrix> operator*( LScalar const& left, R3x3Matrix const& right); template - requires quantity + requires quantity R3x3Matrix> operator*(R3x3Matrix const& left, RScalar const& right); template - requires quantity + requires quantity R3x3Matrix> operator/( R3x3Matrix const& left, RScalar const& right); diff --git a/geometry/r3x3_matrix_body.hpp b/geometry/r3x3_matrix_body.hpp index e75ceb7fc2..90dafc872f 100644 --- a/geometry/r3x3_matrix_body.hpp +++ b/geometry/r3x3_matrix_body.hpp @@ -341,7 +341,8 @@ R3Element> operator*( } -template +template + requires quantity R3x3Matrix> operator*( LScalar const& left, R3x3Matrix const& right) { @@ -353,7 +354,8 @@ R3x3Matrix> operator*( left * right.rows_[Z]); } -template +template + requires quantity R3x3Matrix> operator*( R3x3Matrix const& left, RScalar const& right) { @@ -365,7 +367,8 @@ R3x3Matrix> operator*( left.rows_[Z] * right); } -template +template + requires quantity R3x3Matrix> operator/( R3x3Matrix const& left, RScalar const& right) {