]> git.sesse.net Git - casparcg/blobdiff - protocol/util/AsyncEventServer.cpp
Remove most of boost::lexical_cast.
[casparcg] / protocol / util / AsyncEventServer.cpp
index 4add2e7496ab967dc3ec2ac9c4066081f0036fd4..dad1ce84e27fef541d8695af62f778b7878dd5df 100644 (file)
@@ -31,7 +31,6 @@
 #include <functional>
 
 #include <boost/asio.hpp>
-#include <boost/lexical_cast.hpp>
 
 #include <tbb/mutex.h>
 #include <tbb/concurrent_hash_map.h>
@@ -212,7 +211,7 @@ private:
     connection(const std::shared_ptr<boost::asio::io_service>& service, const spl::shared_ptr<tcp::socket>& socket, const protocol_strategy_factory<char>::ptr& protocol_factory, const spl::shared_ptr<connection_set>& connection_set)
                : socket_(socket)
                , service_(service)
-               , listen_port_(socket_->is_open() ? boost::lexical_cast<std::wstring>(socket_->local_endpoint().port()) : L"no-port")
+               , listen_port_(socket_->is_open() ? std::to_wstring(socket_->local_endpoint().port()) : L"no-port")
                , connection_set_(connection_set)
                , protocol_factory_(protocol_factory)
                , is_writing_(false)
@@ -349,7 +348,7 @@ struct AsyncEventServer::implementation : public spl::enable_shared_from_this<im
 
        std::wstring print() const
        {
-               return L"async_event_server[:" + boost::lexical_cast<std::wstring>(acceptor_.local_endpoint().port()) + L"]";
+               return L"async_event_server[:" + std::to_wstring(acceptor_.local_endpoint().port()) + L"]";
        }
 
        void add_client_lifecycle_object_factory(const lifecycle_factory_t& factory)