Skip to content

Commit dee78f8

Browse files
committed
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>
1 parent be08ba2 commit dee78f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/toml11/fwd/literal_fwd.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ inline namespace literals
1919
inline namespace toml_literals
2020
{
2121

22-
::toml::value operator"" _toml(const char* str, std::size_t len);
22+
::toml::value operator""_toml(const char* str, std::size_t len);
2323

2424
#if defined(TOML11_HAS_CHAR8_T)
2525
// value of u8"" literal has been changed from char to char8_t and char8_t is

include/toml11/impl/literal_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ inline namespace toml_literals
115115
{
116116

117117
TOML11_INLINE ::toml::value
118-
operator"" _toml(const char* str, std::size_t len)
118+
operator""_toml(const char* str, std::size_t len)
119119
{
120120
if(len == 0)
121121
{

0 commit comments

Comments
 (0)