pow<0> support added

This commit is contained in:
Mateusz Pusz
2019-10-19 20:51:20 +02:00
parent b2f33c6dfa
commit 8543ab65d1
3 changed files with 9 additions and 1 deletions
+7
View File
@@ -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
{