c++ - Storing a boost::signals2 signal in a map? -
i facing following problem: want store number of boost::signals2 signal variables in map. since these signals non-copyable, not work. how can work around this? have found this older question. in it, poster suggests storing signals shared_ptr. only way of doing it? have drawbacks, or, more important, safe?
as has been pointed out commentators: using shared_ptrs signals safe. implementation works , has been thoroughly tested in meantime , happy report there indeed no problems :)
Comments
Post a Comment