Boost logo

Boost Users :

Subject: Re: [Boost-users] Problem with boost::any?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-01-12 13:56:39


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net