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_length>> : upcast_to<dimension_length> {};
template<typename T>
concept bool Length = Quantity<T> && std::experimental::ranges::Same<typename T::dimension, dimension_length>;
concept bool Length = Quantity<T> && std::Same<typename T::dimension, dimension_length>;
template<Unit U = struct meter, Number Rep = double>
using length = quantity<dimension_length, U, Rep>;