Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecated literal operator #651

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cielavenir
Copy link

On clang 20, this happens:

$ clang++-20 zmq.hpp
zmq.hpp:1367:35: warning: identifier '_zbuf' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
 1367 | constexpr const_buffer operator"" _zbuf(const char *str, size_t len) noexcept
      |                        ~~~~~~~~~~~^~~~~
      |                        operator""_zbuf
zmq.hpp:1371:35: warning: identifier '_zbuf' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
 1371 | constexpr const_buffer operator"" _zbuf(const wchar_t *str, size_t len) noexcept
      |                        ~~~~~~~~~~~^~~~~
      |                        operator""_zbuf
zmq.hpp:1375:35: warning: identifier '_zbuf' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
 1375 | constexpr const_buffer operator"" _zbuf(const char16_t *str, size_t len) noexcept
      |                        ~~~~~~~~~~~^~~~~
      |                        operator""_zbuf
zmq.hpp:1379:35: warning: identifier '_zbuf' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
 1379 | constexpr const_buffer operator"" _zbuf(const char32_t *str, size_t len) noexcept
      |                        ~~~~~~~~~~~^~~~~
      |                        operator""_zbuf
4 warnings generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant