refactor: apply comments

This commit is contained in:
Johel Ernesto Guerrero Peña
2021-03-15 15:19:50 +01:00
committed by Mateusz Pusz
parent dca553ed96
commit 94eb477f02
4 changed files with 14 additions and 10 deletions
+1 -6
View File
@@ -44,11 +44,6 @@ using namespace unit_constants;
constexpr auto cgs_cm = cgs::unit_constants::cm;
#if UNITS_DOWNCAST_MODE == 0
template<typename T, typename U>
constexpr bool is_same_v = equivalent<T, U>;
#endif
//////////////////////////////
// quantity class invariants
@@ -748,7 +743,7 @@ static_assert(quantity_cast<dim_speed, kilometre_per_hour>(2000.0_q_m / 3600.0_q
static_assert(quantity_cast<dim_length>(1 * cgs_cm) == 1 * cm);
static_assert(is_same_v<decltype(quantity_cast<litre>(2_q_dm3)), volume<litre, std::int64_t>>);
static_assert(!std::same_as<decltype(quantity_cast<litre>(2_q_dm3)), volume<cubic_decimetre, std::int64_t>>);
static_assert(!is_same_v<decltype(quantity_cast<litre>(2_q_dm3)), volume<cubic_decimetre, std::int64_t>>);
////////////////
// downcasting