Skip to content

Commit 7f1536f

Browse files
authored
Fix for clang 20
Fixes the following clang 20 error: ``` jsoncons/basic_json.hpp:5571:34: error: identifier '_ojson' pre ceded by whitespace in a literal operator declaration is deprecated [-Werror,-Wdeprecated-literal-operator] ```
1 parent 68fafa1 commit 7f1536f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/jsoncons/basic_json.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4714,25 +4714,25 @@ namespace jsoncons {
47144714
inline namespace literals {
47154715

47164716
inline
4717-
jsoncons::json operator "" _json(const char* s, std::size_t n)
4717+
jsoncons::json operator ""_json(const char* s, std::size_t n)
47184718
{
47194719
return jsoncons::json::parse(jsoncons::json::string_view_type(s, n));
47204720
}
47214721

47224722
inline
4723-
jsoncons::wjson operator "" _json(const wchar_t* s, std::size_t n)
4723+
jsoncons::wjson operator ""_json(const wchar_t* s, std::size_t n)
47244724
{
47254725
return jsoncons::wjson::parse(jsoncons::wjson::string_view_type(s, n));
47264726
}
47274727

47284728
inline
4729-
jsoncons::ojson operator "" _ojson(const char* s, std::size_t n)
4729+
jsoncons::ojson operator ""_ojson(const char* s, std::size_t n)
47304730
{
47314731
return jsoncons::ojson::parse(jsoncons::ojson::string_view_type(s, n));
47324732
}
47334733

47344734
inline
4735-
jsoncons::wojson operator "" _ojson(const wchar_t* s, std::size_t n)
4735+
jsoncons::wojson operator ""_ojson(const wchar_t* s, std::size_t n)
47364736
{
47374737
return jsoncons::wojson::parse(jsoncons::wojson::string_view_type(s, n));
47384738
}

0 commit comments

Comments
 (0)