Commit 8f04c808 authored by Dominik Charousset's avatar Dominik Charousset

Fix `is_mutable_ref` type trait implementation

parent a828516a
......@@ -251,10 +251,13 @@ struct is_legal_tuple_type {
* Checks wheter `T` is a non-const reference.
*/
template <class T>
struct is_mutable_ref {
static constexpr bool value = std::is_reference<T>::value
&& !std::is_const<T>::value;
};
struct is_mutable_ref : std::false_type { };
template <class T>
struct is_mutable_ref<const T&> : std::false_type { };
template <class T>
struct is_mutable_ref<T&> : std::true_type { };
/**
* Checks whether `T::static_type_name()` exists.
......
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