Skip to content

Commit d48d95d

Browse files
committed
Don't use deprecated form of user-defined literal operator.
1 parent 5362e69 commit d48d95d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/boost/asio/buffer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2731,15 +2731,15 @@ struct literal<'0', 'X', Chars...> :
27312731
} // namespace detail
27322732

27332733
/// Literal operator for creating const_buffer objects from string literals.
2734-
inline BOOST_ASIO_CONST_BUFFER operator"" _buf(const char* data, std::size_t n)
2734+
inline BOOST_ASIO_CONST_BUFFER operator ""_buf(const char* data, std::size_t n)
27352735
{
27362736
return BOOST_ASIO_CONST_BUFFER(data, n);
27372737
}
27382738

27392739
/// Literal operator for creating const_buffer objects from unbounded binary or
27402740
/// hexadecimal integer literals.
27412741
template <char... Chars>
2742-
inline BOOST_ASIO_CONST_BUFFER operator"" _buf()
2742+
inline BOOST_ASIO_CONST_BUFFER operator ""_buf()
27432743
{
27442744
return BOOST_ASIO_CONST_BUFFER(
27452745
+detail::literal<Chars...>::data,

0 commit comments

Comments
 (0)