From 2fcec1c227655c9a483f88594c9d70efddd70049 Mon Sep 17 00:00:00 2001 From: cielavenir Date: Tue, 25 Feb 2025 12:17:05 +0900 Subject: [PATCH] Fix deprecated literal operator --- zmq.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zmq.hpp b/zmq.hpp index 3af04d3f..3bfc71f1 100644 --- a/zmq.hpp +++ b/zmq.hpp @@ -1364,19 +1364,19 @@ constexpr const_buffer str_buffer(const Char (&data)[N]) noexcept namespace literals { -constexpr const_buffer operator"" _zbuf(const char *str, size_t len) noexcept +constexpr const_buffer operator ""_zbuf(const char *str, size_t len) noexcept { return const_buffer(str, len * sizeof(char)); } -constexpr const_buffer operator"" _zbuf(const wchar_t *str, size_t len) noexcept +constexpr const_buffer operator ""_zbuf(const wchar_t *str, size_t len) noexcept { return const_buffer(str, len * sizeof(wchar_t)); } -constexpr const_buffer operator"" _zbuf(const char16_t *str, size_t len) noexcept +constexpr const_buffer operator ""_zbuf(const char16_t *str, size_t len) noexcept { return const_buffer(str, len * sizeof(char16_t)); } -constexpr const_buffer operator"" _zbuf(const char32_t *str, size_t len) noexcept +constexpr const_buffer operator ""_zbuf(const char32_t *str, size_t len) noexcept { return const_buffer(str, len * sizeof(char32_t)); }