We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a987782 commit 2c31306Copy full SHA for 2c31306
include/cib/detail/runtime_conditional.hpp
@@ -5,6 +5,7 @@
5
#include <cib/detail/extend.hpp>
6
7
#include <stdx/compiler.hpp>
8
+#include <stdx/concepts.hpp>
9
#include <stdx/ct_format.hpp>
10
#include <stdx/tuple.hpp>
11
#include <stdx/tuple_algorithms.hpp>
@@ -47,7 +48,11 @@ struct runtime_conditional : config_item {
47
48
}
49
};
50
-template <stdx::ct_string Name, typename... Ps> // FIXME: concept for Ps
51
+template <typename T>
52
+concept runtime_predicate =
53
+ std::default_initializable<T> and stdx::predicate<T>;
54
+
55
+template <stdx::ct_string Name, runtime_predicate... Ps>
56
struct runtime_condition {
57
constexpr static auto predicates = stdx::make_tuple(Ps{}...);
58
0 commit comments