From dde974339dd2ee5ff962bd43e388ab8f9e719086 Mon Sep 17 00:00:00 2001 From: neargye Date: Sun, 6 Oct 2019 12:12:46 +0500 Subject: [PATCH] fix nameof_enum cv-ref bug --- include/nameof.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nameof.hpp b/include/nameof.hpp index 2de9327..d1e061e 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -259,7 +259,7 @@ template using remove_cvref_t = std::remove_cv_t>; template -using enable_if_enum_t = std::enable_if_t, R>; +using enable_if_enum_t = std::enable_if_t>, R>; template inline constexpr bool is_enum_v = std::is_enum_v && std::is_same_v>;