|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r58670 - trunk/libs/asio/example/porthopper
From: chris_at_[hidden]
Date: 2010-01-04 07:33:04
Author: chris_kohlhoff
Date: 2010-01-04 07:33:04 EST (Mon, 04 Jan 2010)
New Revision: 58670
URL: http://svn.boost.org/trac/boost/changeset/58670
Log:
Fix example to compile with MSVC 10 beta 2.
Text files modified:
trunk/libs/asio/example/porthopper/client.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Modified: trunk/libs/asio/example/porthopper/client.cpp
==============================================================================
--- trunk/libs/asio/example/porthopper/client.cpp (original)
+++ trunk/libs/asio/example/porthopper/client.cpp 2010-01-04 07:33:04 EST (Mon, 04 Jan 2010)
@@ -49,7 +49,7 @@
control_socket.connect(remote_endpoint);
// Create a datagram socket to receive data from the server.
- shared_ptr<udp::socket> data_socket(
+ boost::shared_ptr<udp::socket> data_socket(
new udp::socket(io_service, udp::endpoint(udp::v4(), 0)));
// Determine what port we will receive data on.
@@ -81,7 +81,7 @@
std::cout << " Starting renegotiation";
// Create the new data socket.
- shared_ptr<udp::socket> new_data_socket(
+ boost::shared_ptr<udp::socket> new_data_socket(
new udp::socket(io_service, udp::endpoint(udp::v4(), 0)));
// Determine the new port we will use to receive data.
@@ -113,7 +113,7 @@
// We have successfully received a frame on the new data socket,
// so we can close the old data socket. This will cancel any
// outstanding receive operation on the old data socket.
- lambda::var(data_socket) = shared_ptr<udp::socket>()
+ lambda::var(data_socket) = boost::shared_ptr<udp::socket>()
]
));
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