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.
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.