Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost.Asio] asio objects: initializing after construction
From: Igor R (boost.lists_at_[hidden])
Date: 2008-10-11 13:39:10


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);
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net