Skip to content

Commit 11a31e1

Browse files
authored
Merge pull request #160 from SvenJo/bugfix/new-clang20-warning-Wdeprecated-literal-operator
fix new Clang 20 Waring -Wdeprecated-literal-operator
2 parents 3d1d4fc + 908869b commit 11a31e1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

include/tao/json/binary.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ namespace tao::json
9191
inline namespace literals
9292
{
9393
template< char... Cs >
94-
[[nodiscard]] std::vector< std::byte > operator"" _binary()
94+
[[nodiscard]] std::vector< std::byte > operator""_binary()
9595
{
9696
return internal::unhex< std::vector< std::byte >, Cs... >();
9797
}

include/tao/json/from_string.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace tao::json
2929

3030
inline namespace literals
3131
{
32-
[[nodiscard]] inline value operator"" _json( const char* data, const std::size_t size )
32+
[[nodiscard]] inline value operator""_json( const char* data, const std::size_t size )
3333
{
3434
return json::from_string( data, size, "literal" );
3535
}

include/tao/json/jaxn/from_string.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace tao::json::jaxn
3030

3131
inline namespace literals
3232
{
33-
[[nodiscard]] inline value operator"" _jaxn( const char* data, const std::size_t size )
33+
[[nodiscard]] inline value operator""_jaxn( const char* data, const std::size_t size )
3434
{
3535
return jaxn::from_string( data, size, "literal" );
3636
}

include/tao/json/pointer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ namespace tao::json
425425

426426
inline namespace literals
427427
{
428-
[[nodiscard]] inline pointer operator"" _json_pointer( const char* data, const std::size_t size )
428+
[[nodiscard]] inline pointer operator""_json_pointer( const char* data, const std::size_t size )
429429
{
430430
return pointer( { data, size } );
431431
}

0 commit comments

Comments
 (0)