forked from mpusz/mp-units
Ccompilation error fixed on gcc-9
This commit is contained in:
6
src/include/units/bits/external/hacks.h
vendored
6
src/include/units/bits/external/hacks.h
vendored
@@ -77,11 +77,17 @@ namespace std {
|
|||||||
using concepts::default_constructible;
|
using concepts::default_constructible;
|
||||||
using concepts::derived_from;
|
using concepts::derived_from;
|
||||||
using concepts::equality_comparable_with;
|
using concepts::equality_comparable_with;
|
||||||
|
// using concepts::floating_point;
|
||||||
|
using concepts::integral;
|
||||||
using concepts::regular;
|
using concepts::regular;
|
||||||
using concepts::same_as;
|
using concepts::same_as;
|
||||||
using concepts::totally_ordered;
|
using concepts::totally_ordered;
|
||||||
using concepts::totally_ordered_with;
|
using concepts::totally_ordered_with;
|
||||||
|
|
||||||
|
// missing in Range-v3
|
||||||
|
template<class T>
|
||||||
|
concept floating_point = std::is_floating_point_v<T>;
|
||||||
|
|
||||||
template<class F, class... Args>
|
template<class F, class... Args>
|
||||||
concept invocable =
|
concept invocable =
|
||||||
requires(F&& f, Args&&... args) {
|
requires(F&& f, Args&&... args) {
|
||||||
|
@@ -24,7 +24,6 @@
|
|||||||
|
|
||||||
#include <random>
|
#include <random>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <concepts>
|
|
||||||
#include <units/concepts.h>
|
#include <units/concepts.h>
|
||||||
|
|
||||||
namespace units {
|
namespace units {
|
||||||
|
Reference in New Issue
Block a user