Boost logo

Boost :

Subject: Re: [boost] [numeric_cast] request for boost::numeric_downcast
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2008-11-06 09:24:11


Thorsten Ottosen wrote:
>>>
>> Indeed.. it all makes sense.
>>
>> I'll do it sometimes next week.
>
> Thanks!
>
> It does make me wonder if we should have a similar cast in Boost.Any:
>
> boost::any_downcast
>
> ?

That approach seems like bloat.
Couldn't polymorphic_cast and polymorphic_downcast be overloaded?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk