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

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

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -