Commit b65378b5 authored by Dominik Charousset's avatar Dominik Charousset

Prefer simple verb over is_... as constexpr member

parent d5e0477d
......@@ -36,7 +36,7 @@ struct default_sum_type_access {
static constexpr bool specialized = true;
static constexpr bool is_mutable = true;
static constexpr bool immutable = false;
template <int Pos>
static bool is(const T& x, std::integral_constant<int, Pos> token) {
......
......@@ -28,7 +28,7 @@ namespace caf {
template <class T>
struct sum_type_access {
static constexpr bool specialized = false;
static constexpr bool is_mutable = false;
static constexpr bool immutable = false;
};
/// Evaluates to `true` if `T` specializes `sum_type_access`.
......@@ -44,7 +44,7 @@ struct has_sum_type_access {
template <class T>
struct has_mutable_sum_type_access {
static constexpr bool value = sum_type_access<T>::specialized
&& sum_type_access<T>::is_mutable;
&& !sum_type_access<T>::immutable;
};
} // namespace caf
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment