Opened 10 years ago
Closed 9 years ago
#8426 closed Bugs (duplicate)
Example in documentation doesn't compile
| Reported by: | anonymous | Owned by: | chris_kohlhoff | 
|---|---|---|---|
| Milestone: | To Be Determined | Component: | asio | 
| Version: | Boost 1.53.0 | Severity: | Problem | 
| Keywords: | Cc: | 
Description
The examples given for both overloads of basic_socket_acceptor::bind contain a line:
acceptor.bind(boost::asio::ip::tcp::endpoint(12345));
But this doesn't compile here (gcc 4.7.2, boost 1.53), because endpoint has no constructor that takes a single unsigned short.
  Note:
 See   TracTickets
 for help on using tickets.
    

Duplicate of #8421.