From 5091dc6acfa05777b48ce91c24cd348f12d3535d Mon Sep 17 00:00:00 2001 From: neargye Date: Wed, 28 Apr 2021 13:10:59 +0300 Subject: [PATCH] fix using leak --- include/magic_enum.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/magic_enum.hpp b/include/magic_enum.hpp index 014d120..a0c8b4c 100644 --- a/include/magic_enum.hpp +++ b/include/magic_enum.hpp @@ -97,22 +97,21 @@ namespace magic_enum { #if defined(MAGIC_ENUM_USING_ALIAS_OPTIONAL) MAGIC_ENUM_USING_ALIAS_OPTIONAL #else -template -using optional = std::optional; +using std::optional; #endif // If need another string_view type, define the macro MAGIC_ENUM_USING_ALIAS_STRING_VIEW. #if defined(MAGIC_ENUM_USING_ALIAS_STRING_VIEW) MAGIC_ENUM_USING_ALIAS_STRING_VIEW #else -using string_view = std::string_view; +using std::string_view; #endif // If need another string type, define the macro MAGIC_ENUM_USING_ALIAS_STRING. #if defined(MAGIC_ENUM_USING_ALIAS_STRING) MAGIC_ENUM_USING_ALIAS_STRING #else -using string = std::string; +using std::string; #endif namespace customize {