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.

Change History (1)

comment:1 by chris_kohlhoff, 9 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #8421.

Note: See TracTickets for help on using tickets.