added inheritance unit-test and made is_quantity<T> more specific

This commit is contained in:
Ralph J. Steinhagen
2021-06-29 20:31:06 +02:00
committed by Mateusz Pusz
parent 95ac869522
commit 8e1539bf22
3 changed files with 24 additions and 1 deletions
+1 -1
View File
@@ -269,7 +269,7 @@ concept Reference = detail::is_reference<T>;
namespace detail {
template<typename T>
inline constexpr bool is_quantity = requires { typename T::dimension; typename T::unit; typename T::rep;};
inline constexpr bool is_quantity = false;
template<typename T>
inline constexpr bool is_quantity_point = false;