mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-16 08:27:31 +08:00
Remove whitespace in operator""
Clang 20+ errors about this whitespace. Fixes include/toml11/impl/../fwd/literal_fwd.hpp:22:26: error: identifier '_toml' preceded by whitespace in a literal operator declaration is deprecated [-Werror,-Wdeprecated-literal-operator] | 22 | ::toml::value operator"" _toml(const char* str, std::size_t len); | | ~~~~~~~~~~~^~~~~ | | operator""_toml Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -19,7 +19,7 @@ inline namespace literals
|
||||
inline namespace toml_literals
|
||||
{
|
||||
|
||||
::toml::value operator"" _toml(const char* str, std::size_t len);
|
||||
::toml::value operator""_toml(const char* str, std::size_t len);
|
||||
|
||||
#if defined(TOML11_HAS_CHAR8_T)
|
||||
// value of u8"" literal has been changed from char to char8_t and char8_t is
|
||||
|
@@ -115,7 +115,7 @@ inline namespace toml_literals
|
||||
{
|
||||
|
||||
TOML11_INLINE ::toml::value
|
||||
operator"" _toml(const char* str, std::size_t len)
|
||||
operator""_toml(const char* str, std::size_t len)
|
||||
{
|
||||
if(len == 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user