Skip to content

Commit

Permalink
[math] Fix saturated friend class compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed May 6, 2023
1 parent 6facf61 commit b9f93ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modm/math/saturation/saturated.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ class Saturated
// @see: https://stackoverflow.com/questions/1374037/ambiguous-overload-call-to-absdouble
{ value = abs(value); }

template<typename>
template<typename U>
requires std::integral<std::remove_reference_t<U>>
friend class Saturated;
};

Expand Down

0 comments on commit b9f93ec

Please sign in to comment.