Skip to content

Commit

Permalink
fix: common_type_t with std::chrono::seconds unit test removed
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Jul 14, 2024
1 parent d84a2be commit c57142c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/static/quantity_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -983,10 +983,6 @@ static_assert(is_same_v<std::common_type_t<quantity<(isq::mass * pow<2>(isq::len
quantity<isq::energy[kg * m2 / s2], double>>,
quantity<isq::energy[J], double>>);

#if MP_UNITS_HOSTED
static_assert(is_same_v<std::common_type_t<quantity<si::second, std::chrono::seconds::rep>, std::chrono::seconds>, std::chrono::seconds>);
#endif

static_assert(is_same_v<std::common_type_t<quantity<one, int>, int>, quantity<one, int>>);
static_assert(is_same_v<std::common_type_t<quantity<one, int>, double>, quantity<one, double>>);
static_assert(is_same_v<std::common_type_t<quantity<one, double>, int>, quantity<one, double>>);
Expand Down

0 comments on commit c57142c

Please sign in to comment.