mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-02 20:04:27 +02:00
type_list moved from mp to units namespace
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
namespace mp {
|
||||
namespace units {
|
||||
|
||||
namespace detail {
|
||||
|
||||
@@ -163,4 +163,4 @@ namespace mp {
|
||||
template<TypeList List, template<typename, typename> typename Pred>
|
||||
using type_list_sort_t = typename type_list_sort<List, Pred>::type;
|
||||
|
||||
} // namespace mp
|
||||
} // namespace units
|
@@ -140,7 +140,7 @@ namespace units {
|
||||
struct dim_consolidate<dimension<E1, ERest...>> {
|
||||
using rest = dim_consolidate_t<dimension<ERest...>>;
|
||||
using type =
|
||||
std::conditional_t<std::is_same_v<rest, dimension<>>, dimension<E1>, mp::type_list_push_front_t<rest, E1>>;
|
||||
std::conditional_t<std::is_same_v<rest, dimension<>>, dimension<E1>, type_list_push_front_t<rest, E1>>;
|
||||
};
|
||||
|
||||
template<typename D, int V1, int V2, Exponent... ERest>
|
||||
@@ -153,7 +153,7 @@ namespace units {
|
||||
|
||||
template<Exponent... Es>
|
||||
struct make_dimension {
|
||||
using type = mp::type_list_sort_t<detail::dim_consolidate_t<mp::type_list_sort_t<dimension<Es...>, exp_dim_id_less>>, exp_greater_equal>;
|
||||
using type = type_list_sort_t<detail::dim_consolidate_t<type_list_sort_t<dimension<Es...>, exp_dim_id_less>>, exp_greater_equal>;
|
||||
};
|
||||
|
||||
template<Exponent... Es>
|
||||
@@ -161,7 +161,7 @@ namespace units {
|
||||
|
||||
template<Dimension D1, Dimension D2>
|
||||
struct merge_dimension {
|
||||
using type = mp::type_list_sort_t<detail::dim_consolidate_t<mp::type_list_merge_sorted_t<D1, D2, exp_dim_id_less>>, exp_greater_equal>;
|
||||
using type = type_list_sort_t<detail::dim_consolidate_t<type_list_merge_sorted_t<D1, D2, exp_dim_id_less>>, exp_greater_equal>;
|
||||
};
|
||||
|
||||
template<Dimension D1, Dimension D2>
|
||||
|
@@ -25,7 +25,6 @@
|
||||
|
||||
namespace {
|
||||
|
||||
using namespace mp;
|
||||
using namespace units;
|
||||
|
||||
template<typename... Types>
|
||||
|
Reference in New Issue
Block a user