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:
Khem Raj
2025-03-07 11:35:46 -08:00
parent be08ba2be2
commit dee78f822d
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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)
{