Skip to content

'message_t' is deprecated: from 4.7.0 #647

Description

@nvanwyen

Is there an update available or planned which removes the depreciated message_t from the library and tests?

cppzmq/tests/message.cpp:75:20: warning: 'message_t' is deprecated: from 4.7.0, use constructors taking iterators, (pointer, size) or strings instead [-Wdeprecated-declarations]
   75 |     zmq::message_t hi_msg("Hi"); // deprecated
      |                    ^
cppzmq/zmq.hpp:469:14: note: 'message_t' has been explicitly marked deprecated here
  469 |     explicit message_t(const Char (&data)[N]) :
      |              ^
cppzmq/tests/message.cpp:193:26: warning: 'message_t' is deprecated: from 4.7.0, use constructors taking iterators, (pointer, size) or strings instead [-Wdeprecated-declarations]
  193 |     const zmq::message_t depr("Foo"); // deprecated
      |                          ^
cppzmq/zmq.hpp:469:14: note: 'message_t' has been explicitly marked deprecated here
  469 |     explicit message_t(const Char (&data)[N]) :
      |              ^
czmq/cppzmq/tests/socket.cpp:623:24: warning: 'recv' is deprecated: from 4.3.1, use recv taking a reference to message_t and recv_flags [-Wdeprecated-declarations]
  623 |     const bool res = s.recv(&rmsg);
      |                        ^
cppzmq/zmq.hpp:2010:5: note: 'recv' has been explicitly marked deprecated here
 2010 |     ZMQ_CPP11_DEPRECATED(
      |     ^
cppzmq/zmq.hpp:87:35: note: expanded from macro 'ZMQ_CPP11_DEPRECATED'
   87 | #define ZMQ_CPP11_DEPRECATED(msg) ZMQ_DEPRECATED(msg)
      |                                   ^
cppzmq/zmq.hpp:65:31: note: expanded from macro 'ZMQ_DEPRECATED'
   65 | #define ZMQ_DEPRECATED(msg) [[deprecated(msg)]]
      |                               ^

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions