forked from mpusz/mp-units
Numeric concepts removed from repo (no longer used)
This commit is contained in:
@@ -124,8 +124,8 @@ public:
|
||||
|
||||
template<typename T = Rep>
|
||||
[[nodiscard]] constexpr quantity operator-() const
|
||||
requires std::regular_invocable<std::ranges::negate, T>
|
||||
// requires std::regular_invocable<std::ranges::negate, rep> // TODO gated by gcc-9 (fixed in gcc-10)
|
||||
requires std::regular_invocable<std::negate<>, T>
|
||||
// requires std::regular_invocable<std::negate<>, rep> // TODO gated by gcc-9 (fixed in gcc-10)
|
||||
{
|
||||
return quantity(-count());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user