Skip to content

Commit

Permalink
fix(example): measurement now properly propagates `treat_as_floatin…
Browse files Browse the repository at this point in the history
…g_point`
  • Loading branch information
mpusz committed Sep 10, 2023
1 parent d7261c8 commit 42527d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example/measurement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ class measurement {

} // namespace

template<class T>
inline constexpr bool mp_units::treat_as_floating_point<measurement<T>> = mp_units::treat_as_floating_point<T>;

template<class T>
inline constexpr bool mp_units::is_scalar<measurement<T>> = true;
template<class T>
Expand Down

0 comments on commit 42527d2

Please sign in to comment.