
12 Jan
2009
12 Jan
'09
6:56 p.m.
AMDG Germán Diago wrote:
Hello. I'm working with boost::any and shared_ptr.
I'm implementing a plugin system which uses registration from .so files (under Linux). The problem is that I have a factory function which returns boost::any. This boost::any object holds a pointer type. The problem is that when I try to get the registered type back to its real type through boost::any_cast, the cast always fails. If I register this type in the same executable as the application, everything is ok, and I can cast back to its real type.I have no idea why this happens:
https://svn.boost.org/trac/boost/ticket/754 In Christ, Steven Watanabe