mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
@@ -2328,7 +2328,7 @@ namespace units
|
||||
|
||||
// unary addition: +T
|
||||
template<class Units, typename T, template<typename> class NonLinearScale>
|
||||
inline unit_t<Units, T, NonLinearScale> operator+(const unit_t<Units, T, NonLinearScale>& u) noexcept
|
||||
constexpr inline unit_t<Units, T, NonLinearScale> operator+(const unit_t<Units, T, NonLinearScale>& u) noexcept
|
||||
{
|
||||
return u;
|
||||
}
|
||||
@@ -2352,7 +2352,7 @@ namespace units
|
||||
|
||||
// unary addition: -T
|
||||
template<class Units, typename T, template<typename> class NonLinearScale>
|
||||
inline unit_t<Units, T, NonLinearScale> operator-(const unit_t<Units, T, NonLinearScale>& u) noexcept
|
||||
constexpr inline unit_t<Units, T, NonLinearScale> operator-(const unit_t<Units, T, NonLinearScale>& u) noexcept
|
||||
{
|
||||
return unit_t<Units, T, NonLinearScale>(-u());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user