pow<0> support added

This commit is contained in:
Mateusz Pusz committed 2019-10-19 20:51:20 +02:00
1 parent b2f33c6dfa
commit 8543ab65d1
3 files changed
+9 -1

No files matched your search

+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
{