chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.84k stars 1.2k forks source link

non-boost tutorial-timer.3 & 4 & 5 has boost references #864

Open Ryder17z opened 3 years ago

Ryder17z commented 3 years ago

https://think-async.com/Asio/asio-1.18.2/doc/asio/tutorial/tuttimer3.html

why?

iamOgunyinka commented 3 years ago

Yes, but that's not an issue. It used boost::bind, which can be easily replaced with std::bind.

PS: Non-boost asio does not mean "we won't use Boost at all for any other thing", it simply means "this asio library is stand-alone and not bound to Boost".

Ryder17z commented 3 years ago

Yes, but that's not an issue. It used boost::bind, which can be easily replaced with std::bind.

That just seems to be a lazy excuse to not update the documentation because somebody forgot.

PS: Non-boost asio does not mean "we won't use Boost at all for any other thing", it simply means "this asio library is stand-alone and not bound to Boost".

That's contradictory and doesn't help the situation.

Good bye.

Ryanf55 commented 1 year ago

The tutorials are largely in the C++03 folder. asio/src/examples/cpp03/tutorial/timer3/timer.cpp, while std::bind was not added to the STL till C++11.

There are numerous great videos on using asio released recently, however, it's not clear why the main tutorials haven't been updated to reflect more recent uses of C++. I am considering updating some of the examples.