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

examples: fix missing header #568

Merged

Conversation

stephanlachnit
Copy link
Contributor

@stephanlachnit stephanlachnit commented Aug 12, 2022

With GCC12, I get this error:

../subprojects/cppzmq-4.8.1/examples/pubsub_multithread_inproc.cpp: In function ‘void PublisherThread(zmq::context_t*)’:
../subprojects/cppzmq-4.8.1/examples/pubsub_multithread_inproc.cpp:14:23: error: ‘sleep_for’ is not a member of ‘std::this_thread’
   14 |     std::this_thread::sleep_for(std::chrono::milliseconds(20));

This is because sleep_for is part of thread, which is not included in the example. This PR fixes that.

Signed-off-by: Stephan Lachnit <stephanlachnit@debian.org>
@coveralls
Copy link

Pull Request Test Coverage Report for Build 2846473152

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.037%

Totals Coverage Status
Change from base Build 2504979042: 0.0%
Covered Lines: 801
Relevant Lines: 931

💛 - Coveralls

@gummif gummif merged commit 361156a into zeromq:master Aug 12, 2022
@stephanlachnit stephanlachnit deleted the p-fix-pubsub_multithread_inproc branch August 15, 2022 07:02
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.

None yet

3 participants