upcastable renamed to upcast_base

This commit is contained in:
Mateusz Pusz
2019-04-05 17:45:09 +02:00
parent 6646051e65
commit 15dd7462ec
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -108,10 +108,10 @@ namespace units {
template<Ratio Ratio1, Ratio Ratio2>
using common_ratio_t = typename common_ratio<Ratio1, Ratio2>::type;
// upcastable
// upcast_base
template<typename BaseType>
struct upcastable {
struct upcast_base {
using base_type = BaseType;
};
+1 -1
View File
@@ -87,7 +87,7 @@ namespace units {
// dimension
template<Exponent... Es>
struct dimension : upcastable<dimension<Es...>> {};
struct dimension : upcast_base<dimension<Es...>> {};
// is_dimension
namespace detail {
+1 -1
View File
@@ -29,7 +29,7 @@ namespace units {
template<Dimension D, Ratio R>
requires (R::num > 0)
struct unit : upcastable<unit<D, R>> {
struct unit : upcast_base<unit<D, R>> {
using dimension = D;
using ratio = R;
};