mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 20:54:28 +02:00
Todos removed from metabench files
This commit is contained in:
@@ -134,7 +134,6 @@ namespace units {
|
|||||||
using dim_invert_t = dim_invert<typename D::base_type>::type;
|
using dim_invert_t = dim_invert<typename D::base_type>::type;
|
||||||
|
|
||||||
|
|
||||||
// todo: force as the only user interface to create dimensions through modules
|
|
||||||
// make_dimension
|
// make_dimension
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
@@ -163,7 +162,6 @@ namespace units {
|
|||||||
|
|
||||||
template<const base_dimension& D, int Num1, int Den1, int Num2, int Den2, Exponent... ERest>
|
template<const base_dimension& D, int Num1, int Den1, int Num2, int Den2, Exponent... ERest>
|
||||||
struct dim_consolidate<dimension<exp<D, Num1, Den1>, exp<D, Num2, Den2>, ERest...>> {
|
struct dim_consolidate<dimension<exp<D, Num1, Den1>, exp<D, Num2, Den2>, ERest...>> {
|
||||||
// todo: provide custom implementation for ratio_add
|
|
||||||
using r1 = std::ratio<Num1, Den1>;
|
using r1 = std::ratio<Num1, Den1>;
|
||||||
using r2 = std::ratio<Num2, Den2>;
|
using r2 = std::ratio<Num2, Den2>;
|
||||||
using r = std::ratio_add<r1, r2>;
|
using r = std::ratio_add<r1, r2>;
|
||||||
|
@@ -134,7 +134,6 @@ namespace units {
|
|||||||
using dim_invert_t = dim_invert<typename D::base_type>::type;
|
using dim_invert_t = dim_invert<typename D::base_type>::type;
|
||||||
|
|
||||||
|
|
||||||
// todo: force as the only user interface to create dimensions through modules
|
|
||||||
// make_dimension
|
// make_dimension
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
@@ -163,7 +162,6 @@ namespace units {
|
|||||||
|
|
||||||
template<const base_dimension& D, int Num1, int Den1, int Num2, int Den2, typename... ERest>
|
template<const base_dimension& D, int Num1, int Den1, int Num2, int Den2, typename... ERest>
|
||||||
struct dim_consolidate<dimension<exp<D, Num1, Den1>, exp<D, Num2, Den2>, ERest...>> {
|
struct dim_consolidate<dimension<exp<D, Num1, Den1>, exp<D, Num2, Den2>, ERest...>> {
|
||||||
// todo: provide custom implementation for ratio_add
|
|
||||||
using r1 = std::ratio<Num1, Den1>;
|
using r1 = std::ratio<Num1, Den1>;
|
||||||
using r2 = std::ratio<Num2, Den2>;
|
using r2 = std::ratio<Num2, Den2>;
|
||||||
using r = std::ratio_add<r1, r2>;
|
using r = std::ratio_add<r1, r2>;
|
||||||
|
@@ -105,7 +105,6 @@ namespace units {
|
|||||||
using dim_invert_t = dim_invert<typename D::base_type>::type;
|
using dim_invert_t = dim_invert<typename D::base_type>::type;
|
||||||
|
|
||||||
|
|
||||||
// todo: force as the only user interface to create dimensions through modules
|
|
||||||
// make_dimension
|
// make_dimension
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
@@ -134,7 +133,6 @@ namespace units {
|
|||||||
|
|
||||||
template<const base_dimension& D, int Num1, int Den1, int Num2, int Den2, typename... ERest>
|
template<const base_dimension& D, int Num1, int Den1, int Num2, int Den2, typename... ERest>
|
||||||
struct dim_consolidate<dimension<exp<D, Num1, Den1>, exp<D, Num2, Den2>, ERest...>> {
|
struct dim_consolidate<dimension<exp<D, Num1, Den1>, exp<D, Num2, Den2>, ERest...>> {
|
||||||
// todo: provide custom implementation for ratio_add
|
|
||||||
using r1 = std::ratio<Num1, Den1>;
|
using r1 = std::ratio<Num1, Den1>;
|
||||||
using r2 = std::ratio<Num2, Den2>;
|
using r2 = std::ratio<Num2, Den2>;
|
||||||
using r = std::ratio_add<r1, r2>;
|
using r = std::ratio_add<r1, r2>;
|
||||||
|
@@ -122,7 +122,6 @@ namespace units {
|
|||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
// todo: simplified
|
|
||||||
template<Ratio R1, Ratio R2>
|
template<Ratio R1, Ratio R2>
|
||||||
struct common_ratio_impl {
|
struct common_ratio_impl {
|
||||||
static constexpr std::intmax_t gcd_num = std::gcd(R1::num, R2::num);
|
static constexpr std::intmax_t gcd_num = std::gcd(R1::num, R2::num);
|
||||||
|
@@ -122,7 +122,6 @@ namespace units {
|
|||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
// todo: simplified
|
|
||||||
template<typename R1, typename R2>
|
template<typename R1, typename R2>
|
||||||
struct common_ratio_impl {
|
struct common_ratio_impl {
|
||||||
static constexpr std::intmax_t gcd_num = std::gcd(R1::num, R2::num);
|
static constexpr std::intmax_t gcd_num = std::gcd(R1::num, R2::num);
|
||||||
|
@@ -107,7 +107,6 @@ namespace units {
|
|||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
// todo: simplified
|
|
||||||
template<typename R1, typename R2>
|
template<typename R1, typename R2>
|
||||||
struct common_ratio_impl {
|
struct common_ratio_impl {
|
||||||
static constexpr std::intmax_t gcd_num = std::gcd(R1::num, R2::num);
|
static constexpr std::intmax_t gcd_num = std::gcd(R1::num, R2::num);
|
||||||
|
@@ -109,7 +109,6 @@ namespace units {
|
|||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
// todo: simplified
|
|
||||||
template<typename R1, typename R2>
|
template<typename R1, typename R2>
|
||||||
struct common_ratio_impl {
|
struct common_ratio_impl {
|
||||||
static constexpr std::intmax_t gcd_num = std::gcd(R1::num, R2::num);
|
static constexpr std::intmax_t gcd_num = std::gcd(R1::num, R2::num);
|
||||||
|
@@ -55,7 +55,6 @@ namespace units {
|
|||||||
|
|
||||||
// common_ratio
|
// common_ratio
|
||||||
|
|
||||||
// todo: simplified
|
|
||||||
template<typename R1, typename R2>
|
template<typename R1, typename R2>
|
||||||
struct common_ratio {
|
struct common_ratio {
|
||||||
using gcd_num = static_gcd<R1::num, R2::num>;
|
using gcd_num = static_gcd<R1::num, R2::num>;
|
||||||
|
Reference in New Issue
Block a user