Subject: [Boost-bugs] [Boost C++ Libraries] #8421: docs show wrong overload
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-09 09:27:36
#8421: docs show wrong overload
-----------------------------------+----------------------------------------
Reporter: chinmay1993@⦠| Type: Bugs
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.53.0
Severity: Not Applicable | Keywords:
-----------------------------------+----------------------------------------
http://www.boost.org/doc/libs/1_53_0/doc/html/boost_asio/reference/basic_socket_acceptor/bind/overload1.html
The way 3rd function in there is shown, in that example.
There is no such overload for endpoint which only takes uint.
http://www.boost.org/doc/libs/1_53_0/doc/html/boost_asio/reference/ip__basic_endpoint/basic_endpoint.html
Hence, The example is bugged and should rather be...
acceptor.bind(boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(),
12345));
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8421> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC