From: Doug Gregor (dgregor_at_[hidden])
Date: 2005-02-16 13:25:59
On Feb 16, 2005, at 12:02 PM, Stefan Slapeta wrote:
> Vladimir Prus wrote:
>> Currently, boost::any supports two kinds of conversion:
>> 1. Unchecked conversion to pointer (NULL is returned if conversion is
>> 2. Checked conversion to value type (exception is thrown if
>> conversion is impossible)
>> I'd like to have another variant -- checked conversion to reference.
> I'm very in favor of this. It has been proposed multiple times and
> Kevlin once told me he is going to extend any_cast this way, but it
> seems he is too busy.
The patch looks good. Vladimir, please check it in. A documentation
update and an announcement of the change for the Boost 1.33.0 web page
would also be appreciated.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk