Concepts-related hacks added to import them to std namespace

This commit is contained in:
Mateusz Pusz committed 2019-05-08 09:05:31 -06:00
1 parent 4990274281
commit e9d1ae2719
15 files changed
+36 -23

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ namespace units {
template<> struct upcasting_traits<upcast_from<dimension_frequency>> : upcast_to<dimension_frequency> {};
template<typename T>
concept bool Frequency = Quantity<T> && std::experimental::ranges::Same<typename T::dimension, dimension_frequency>;
concept bool Frequency = Quantity<T> && std::Same<typename T::dimension, dimension_frequency>;
template<Unit U = struct hertz, Number Rep = double>
using frequency = quantity<dimension_frequency, U, Rep>;