asio icon indicating copy to clipboard operation
asio copied to clipboard

Include full snippet for main method for Timer.5 tutorial

Open arbrsts opened this issue 9 months ago • 0 comments

Added a full main method example snippet to the Timer.5 tutorial to ensure the source code can be replicated and compiled successfully like the other Boost Asio tutorial examples without having to reference the full source listing page.

  ``''''''``int main()
  ``''''''``{
  ``''''''``  asio::io_context io;
  ``''''''``  printer p(io);
  ``''''''``  std::thread t([&]{ io.run(); });
  ``''''''``  io.run();
  ``''''''``  t.join();
  ``''''''``  
  ``''''''``  return 0;
  ``''''''`` }

arbrsts avatar May 20 '24 12:05 arbrsts