mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-07 06:04:27 +02:00
fix: MSVC conversion issues fixed
This commit is contained in:
@@ -219,7 +219,7 @@ static_assert(same(quantity_kind(rate_of_climb<kilometre_per_hour, double>(0.01
|
||||
|
||||
static_assert(construct_from_only<apples<one, int>>(1).common() == 1);
|
||||
static_assert(construct_from_only<apples<one, double>>(1.0).common() == 1);
|
||||
static_assert(construct_from_only<apples<percent, int>>(1ULL).common().number() == 1);
|
||||
static_assert(construct_from_only<apples<percent, int>>(1LL).common().number() == 1);
|
||||
static_assert(construct_from_only<apples<percent, double>>(1.0L).common().number() == 1);
|
||||
static_assert(!constructible_or_convertible_from<apples<one, int>>(1.0));
|
||||
static_assert(!constructible_or_convertible_from<apples<percent, int>>(1.0));
|
||||
|
@@ -264,7 +264,7 @@ static_assert(construct_from_only<nth_apple<one, double>>(1).relative().common()
|
||||
static_assert(construct_from_only<nth_apple<one, double>>(short{1}).relative().common() == 1);
|
||||
static_assert(construct_from_only<nth_apple<one, short>>(1).relative().common() == 1);
|
||||
static_assert(construct_from_only<nth_apple<one, int>>(1).relative().common() == 1);
|
||||
static_assert(construct_from_only<nth_apple<percent, int>>(1ULL).relative().common().number() == 1);
|
||||
static_assert(construct_from_only<nth_apple<percent, int>>(1LL).relative().common().number() == 1);
|
||||
static_assert(construct_from_only<nth_apple<percent, double>>(1).relative().common().number() == 1);
|
||||
static_assert(!constructible_or_convertible_from<nth_apple<percent, int>>(1.0));
|
||||
static_assert(!constructible_or_convertible_from<nth_apple<one, int>>(1.0));
|
||||
|
Reference in New Issue
Block a user