Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

'message_t' is deprecated: from 4.7.0

Aperta
#647 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
38/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp

Direzione di ricerca

Start with the deprecated constructors and recv overloads in cppzmq/zmq.hpp, then inspect their uses in cppzmq/tests/message.cpp and czmq/cppzmq/tests/socket.cpp. Determine the intended supported replacements and run the affected tests; done should mean the deprecated usages and their warnings are addressed without leaving the tests failing.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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)]]
      |                               ^
Lingua principale
C++
Stelle
2.3k
Fork
799
Merge medio
2g 17h
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di zeromq/cppzmq

Tutte le issue di zeromq/cppzmq

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.