From d1ccd22c853ac3afaf7a0f1c86019ea641e777c5 Mon Sep 17 00:00:00 2001 From: neargye Date: Thu, 14 Apr 2022 17:58:37 +0400 Subject: [PATCH] fix linking error --- include/magic_enum.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/magic_enum.hpp b/include/magic_enum.hpp index 3a66d4b..12ea8e9 100644 --- a/include/magic_enum.hpp +++ b/include/magic_enum.hpp @@ -792,10 +792,10 @@ enum class case_call_t { }; template -constexpr auto default_result_type_lambda = []() noexcept(std::is_nothrow_default_constructible_v) { return T{}; }; +inline constexpr auto default_result_type_lambda = []() noexcept(std::is_nothrow_default_constructible_v) { return T{}; }; template <> -constexpr auto default_result_type_lambda = []() noexcept {}; +inline constexpr auto default_result_type_lambda = []() noexcept {}; template constexpr bool no_duplicate() noexcept {