Type traits changed to variable templates
This commit is contained in:
1 parent
4e74617e2a
commit
94fd74000c
6 files changed
+31
-49
No files matched your search
@@ -39,17 +39,15 @@ namespace units {
|
||||
namespace detail {
|
||||
|
||||
template<typename T>
|
||||
struct is_unit : std::false_type {
|
||||
};
|
||||
inline constexpr bool is_unit = false;
|
||||
|
||||
template<Dimension D, Ratio R>
|
||||
struct is_unit<unit<D, R>> : std::true_type {
|
||||
};
|
||||
inline constexpr bool is_unit<unit<D, R>> = true;
|
||||
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
concept bool Unit = detail::is_unit<T>::value;
|
||||
concept bool Unit = detail::is_unit<T>;
|
||||
|
||||
// template<Unit U1, Unit U2>
|
||||
// auto operator/(U1, U2)
|
||||
|
||||
Reference in new issue
Block a user