Boost logo

Boost :

From: Stefan Slapeta (stefan_at_[hidden])
Date: 2005-02-16 12:02:58

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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at