pow<0> support added
This commit is contained in:
1 parent
b2f33c6dfa
commit
8543ab65d1
3 files changed
+9
-1
No files matched your search
@@ -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