shared_ptr in a boost::any
I use boost::any for sending data to my thread's command queue, and I need to send a shared_ptr in. I'm looking for any one to tell me this is fine or bad. Based on my understanding of boost::any I think it will be fine, but I'm slightly concerned I'll screw up the reference count somehow. Can anyone confirm or allay my fears? Thanks, Tom
"Thomas Matelich"
I use boost::any for sending data to my thread's command queue, and I need to send a shared_ptr in. I'm looking for any one to tell me this is fine or bad. Based on my understanding of boost::any I think it will be fine, but I'm slightly concerned I'll screw up the reference count somehow.
Can anyone confirm or allay my fears?
Allay :) -- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (2)
-
David Abrahams
-
Thomas Matelich