11 Oct 19:39
Re: [Boost.Asio] asio objects: initializing after construction
Igor R <boost.lists <at> gmail.com>
2008-10-11 17:39:10 GMT
2008-10-11 17:39:10 GMT
std::map<key, value> expects value to be assignable, while most of asio objects are non-copyable. Consider using a container of [smart] pointers. > I want to extend the maps with new objects, so what is the right way to (?): > > my_acceptors[someport_int].initialize(_my_ioservice,_my_endpoint); > my_acceptors[another_int].initialize(_my_ioservice); >
RSS Feed