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

+3 -3
View File
@@ -22,13 +22,13 @@
#pragma once
#include <experimental/ranges/concepts>
#include <units/bits/hacks.h>
namespace units {
template<typename T>
concept bool Number = std::experimental::ranges::Regular<T> &&
std::experimental::ranges::StrictTotallyOrdered<T> &&
concept bool Number = std::Regular<T> &&
std::StrictTotallyOrdered<T> &&
requires(T a, T b) {
{ a + b } -> T;
{ a - b } -> T;