test: compile quantity_test.cpp with -DUNITS_DOWNCAST_MODE=0

This commit is contained in:
Johel Ernesto Guerrero Peña authored and Mateusz Pusz committed 2021-03-15 14:24:26 +01:00
1 parent b18061ab0e
commit 3002c5673d
6 files changed
+36 -20

No files matched your search

+3 -1
View File
@@ -45,8 +45,10 @@ constexpr bool constructible_from(Vs...) {
return std::constructible_from<T, Us..., Vs...>;
}
template<class T> void convertible_from__(T);
template<typename T, typename... Us>
concept convertible_from_ = requires(Us... us) { [](T) {}({us...}); };
concept convertible_from_ = requires(Us... us) { convertible_from__<T>({us...}); };
template<typename T, typename... Us, typename... Vs>
constexpr bool convertible_from(Vs...) {