_t postfix removed from the interface (resolves #9)
This commit is contained in:
1 parent
9c436812f5
commit
2fddb494d3
8 files changed
+167
-148
No files matched your search
@@ -30,7 +30,7 @@ namespace units {
|
||||
template<std::size_t N, typename U, typename Rep>
|
||||
inline Quantity pow(const quantity<U, Rep>& q) noexcept
|
||||
{
|
||||
using dim = dimension_pow_t<typename U::dimension, N>;
|
||||
using dim = dimension_pow<typename U::dimension, N>;
|
||||
using r = ratio_pow<typename U::ratio, N>;
|
||||
return quantity<downcast_target<unit<dim, r>>, Rep>(static_cast<Rep>(std::pow(q.count(), N)));
|
||||
}
|
||||
@@ -38,7 +38,7 @@ namespace units {
|
||||
template<typename U, typename Rep>
|
||||
inline Quantity sqrt(const quantity<U, Rep>& q) noexcept
|
||||
{
|
||||
using dim = dimension_sqrt_t<typename U::dimension>;
|
||||
using dim = dimension_sqrt<typename U::dimension>;
|
||||
using r = ratio_sqrt<typename U::ratio>;
|
||||
return quantity<downcast_target<unit<dim, r>>, Rep>(static_cast<Rep>(std::sqrt(q.count())));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user