
16 Feb
2005
16 Feb
'05
5:02 p.m.
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. Stefan