#include <libxml++/libxml++.h>
#include <boost/asio.hpp>
#include <boost/thread.hpp>
+#include <boost/make_shared.hpp>
#include <stdint.h>
#include <iomanip>
#include <iostream>
using std::string;
using std::cout;
using boost::shared_ptr;
+using boost::make_shared;
using dcp::Size;
using dcp::Data;
boost::asio::ip::tcp::resolver::query query (serv.host_name(), raw_convert<string> (Config::instance()->server_port_base ()));
boost::asio::ip::tcp::resolver::iterator endpoint_iterator = resolver.resolve (query);
- shared_ptr<Socket> socket (new Socket (timeout));
+ shared_ptr<Socket> socket = make_shared<Socket> (timeout);
socket->connect (*endpoint_iterator);