forked from mpusz/mp-units
pow<0> support added
This commit is contained in:
@@ -27,6 +27,13 @@
|
||||
|
||||
namespace units {
|
||||
|
||||
template<std::size_t N, typename U, typename Rep>
|
||||
requires N == 0
|
||||
inline Rep AUTO pow(const quantity<U, Rep>&) noexcept
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
template<std::size_t N, typename U, typename Rep>
|
||||
inline Quantity AUTO pow(const quantity<U, Rep>& q) noexcept
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user