Boost logo

Boost-Commit :

From: chris_at_[hidden]
Date: 2008-05-02 03:59:02


Author: chris_kohlhoff
Date: 2008-05-02 03:59:01 EDT (Fri, 02 May 2008)
New Revision: 45006
URL: http://svn.boost.org/trac/boost/changeset/45006

Log:
Fully qualify uses of asio's placeholders to resolve ambiguity with C++0x's
placeholders namespace.

Text files modified:
   trunk/libs/asio/test/ip/udp.cpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: trunk/libs/asio/test/ip/udp.cpp
==============================================================================
--- trunk/libs/asio/test/ip/udp.cpp (original)
+++ trunk/libs/asio/test/ip/udp.cpp 2008-05-02 03:59:01 EDT (Fri, 02 May 2008)
@@ -311,10 +311,12 @@
   target_endpoint = sender_endpoint;
   s1.async_send_to(buffer(send_msg, sizeof(send_msg)), target_endpoint,
       boost::bind(handle_send, sizeof(send_msg),
- placeholders::error, placeholders::bytes_transferred));
+ boost::asio::placeholders::error,
+ boost::asio::placeholders::bytes_transferred));
   s2.async_receive_from(buffer(recv_msg, sizeof(recv_msg)), sender_endpoint,
       boost::bind(handle_recv, sizeof(recv_msg),
- placeholders::error, placeholders::bytes_transferred));
+ boost::asio::placeholders::error,
+ boost::asio::placeholders::bytes_transferred));
 
   ios.run();
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk