From 5cc0d1c183e04711e08b4b0d2cf13a13fd226c96 Mon Sep 17 00:00:00 2001 From: neargye Date: Wed, 1 May 2019 19:33:33 +0500 Subject: [PATCH] c++17 auto --- include/nameof.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nameof.hpp b/include/nameof.hpp index ca4f979..5d80286 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -111,7 +111,7 @@ template } template -[[nodiscard]] constexpr decltype(auto) enum_names_impl(std::integer_sequence) noexcept { +[[nodiscard]] constexpr auto enum_names_impl(std::integer_sequence) noexcept { static_assert(std::is_enum_v, "nameof::detail::enum_names_impl requires enum type."); constexpr std::array names{{nameof_enum_impl(I + O)>()...}};