forked from mpusz/mp-units
feat: quantity_kind and quantity_point_kind
This commit is contained in:
committed by
Mateusz Pusz
parent
384f4b2624
commit
6bf09aa646
@@ -220,7 +220,7 @@ static_assert(!std::constructible_from<length<kilometre, int>, length<metre, int
|
||||
static_assert(!std::convertible_to<length<metre, int>, length<kilometre, int>>); // truncating metre<int> -> kilometre<int> not allowed
|
||||
|
||||
// converting to double always OK
|
||||
static_assert(std::constructible_from<length<metre>, length<kilometre, int>>);
|
||||
static_assert(std::constructible_from<length<metre>, length<kilometre, int>>);
|
||||
static_assert(std::convertible_to<length<kilometre, int>, length<metre>>);
|
||||
static_assert(std::constructible_from<length<kilometre>, length<metre, int>>);
|
||||
static_assert(std::convertible_to<length<metre, int>, length<kilometre>>);
|
||||
|
Reference in New Issue
Block a user