From 1e0c42234a2c6a4607a81c211bbbd21b61a3af4f Mon Sep 17 00:00:00 2001 From: Nikita Ushakov Date: Wed, 11 Sep 2024 22:02:21 +0100 Subject: [PATCH] Update string.h --- plugify/string.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugify/string.h b/plugify/string.h index 7342d8f..e2342d9 100644 --- a/plugify/string.h +++ b/plugify/string.h @@ -1778,8 +1778,7 @@ namespace plg { } template> - _PLUGIFY_ALWAYS_INLINE - constexpr inline string to_string(Type value) { + constexpr _PLUGIFY_ALWAYS_INLINE string to_string(Type value) { const auto negative = value < 0; const UType uvalue = negative ? static_cast(~value) + static_cast(1) : static_cast(value); const auto length = to_chars_len(uvalue); @@ -1789,8 +1788,7 @@ namespace plg { } template - _PLUGIFY_ALWAYS_INLINE - constexpr inline string to_string(Type value) { + constexpr _PLUGIFY_ALWAYS_INLINE string to_string(Type value) { string str(to_chars_len(value), '\0'); to_chars(&str[0], str.length(), value); return str;