Skip to content

Commit

Permalink
Shift code down in file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Mitiguy committed Dec 19, 2024
1 parent 7d6af8a commit 537320c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions multibody/tree/rotational_inertia.h
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,13 @@ class RotationalInertia {
// Throw an exception if GetInvalidityReport() returns an error string.
void ThrowIfNotPhysicallyValidImpl(const char* func_name) const;

// SFINAE for numeric types.
// ==========================================================================
// The following set of methods, ThrowIfSomeCondition(), are used within
// assertions or demands. We do not try to attempt a smart way throw based on
// a given symbolic::Formula but instead we make these methods a no-throw
// for non-numeric types.

// SFINAE for numeric types. See ThrowIfNotPhysicallyValidImpl().
template <typename T1 = T>
typename std::enable_if_t<scalar_predicate<T1>::is_bool>
ThrowIfNotPhysicallyValid(const char* func_name) {
Expand All @@ -1000,12 +1006,6 @@ class RotationalInertia {
typename std::enable_if_t<!scalar_predicate<T1>::is_bool>
ThrowIfNotPhysicallyValid(const char*) {}

// ==========================================================================
// The following set of methods, ThrowIfSomeCondition(), are used within
// assertions or demands. We do not try to attempt a smart way throw based on
// a given symbolic::Formula but instead we make these methods a no-throw
// for non-numeric types.

// Throws an exception if a rotational inertia is multiplied by a negative
// number - which implies that the resulting rotational inertia is invalid.
template <typename T1 = T>
Expand Down

0 comments on commit 537320c

Please sign in to comment.