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

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -