fix nameof_enum cv-ref bug
This commit is contained in:
parent
6829441ca8
commit
dde974339d
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ template <typename T>
|
|||
using remove_cvref_t = std::remove_cv_t<std::remove_reference_t<T>>;
|
||||
|
||||
template <typename T, typename R>
|
||||
using enable_if_enum_t = std::enable_if_t<std::is_enum_v<T>, R>;
|
||||
using enable_if_enum_t = std::enable_if_t<std::is_enum_v<remove_cvref_t<T>>, R>;
|
||||
|
||||
template <typename T>
|
||||
inline constexpr bool is_enum_v = std::is_enum_v<T> && std::is_same_v<T, std::decay_t<T>>;
|
||||
|
|
Loading…
Reference in a new issue