zeromq / cppzmq

Header-only C++ binding for libzmq
http://www.zeromq.org
MIT License
1.94k stars 757 forks source link

‘sleep_for’ is not a member of ‘std::this_thread’ #534

Open sp1nl0ck opened 2 years ago

sp1nl0ck commented 2 years ago

Hi,

I am using libzmq and cppzmq for a toy project, I am compiling my code on Fedora 35 and I encountered following build error: error: ‘sleep_for’ is not a member of ‘std::this_thread’ when compiling examples/pubsub_multithread_inproc.cpp source file.

Current fix for this issue is to add #include <thread> in pubsub_multithread_inproc.cpp.

Is this the correct approach? If yes I can create a PR for this one.