mirror of
https://github.com/mpusz/mp-units.git
synced 2026-04-29 02:13:28 +02:00
formatting
This commit is contained in:
@@ -474,7 +474,8 @@ static_assert(quantity{v{1., 2., 3}}.quantity_spec == kind_of<dimensionless>);
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
static_assert(std::is_same_v<decltype(quantity{123s})::rep, std::chrono::seconds::rep>);
|
||||
static_assert(std::is_same_v<decltype(quantity{123.s})::rep, decltype(::operator""s(static_cast<long double>(123.)))::rep>);
|
||||
static_assert(
|
||||
std::is_same_v<decltype(quantity{123.s})::rep, decltype(::operator""s(static_cast<long double>(123.)))::rep>);
|
||||
static_assert(quantity{24h}.unit == si::hour);
|
||||
static_assert(quantity{24h}.quantity_spec == kind_of<isq::time>);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user