
16 Feb
2005
16 Feb
'05
6:25 p.m.
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 impossible) 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. Doug