|
Boost : |
From: Eric Friedman (ebf_at_[hidden])
Date: 2007-06-29 17:09:32
Michael,
This is used by variant to support the variant::type method.
Otherwise, as Benoit explained, it is not used.
I know in the past there had been discussion about defining a
BOOST_NO_RTTI macro, but I don't think this went anywhere...? If there
were such a macro, the variant implementation could be changed to
conditionally compile the variant::type method, etc.
Eric
On 6/29/07, Michael Marcin <mmarcin_at_[hidden]> wrote:
> Benoit wrote:
> > Hello
> >
> > The variant library does not rely in any way on RTTI. That should
> > solve your problem :-)
> > Each variant instance stores an additional field describing the type
> > of the contained object.
> >
>
> Oh? Well if that's that case that is good news indeed however it is at
> least not entirely true.
>
> variant.hpp line 18 reads:
>
> #include <typeinfo> // for typeid, std::type_info
>
> And there appears to be a reflect class that uses typeid and std::type_info.
>
> The platform doesn't have these.
>
> Thanks,
>
> Michael Marcin
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk