Boost logo

Boost :

From: Fernando Cacciola (fernando_cacciola_at_[hidden])
Date: 2003-02-19 10:20:31

> Suppose you have a
> variant<mpl::list<int&, std::string&> >
AFAICT references are not supported by variant either.
But if it were..

> How do you check to see if it contains an int&?

But extracting (or accessing, or peeking) (int&)*.

Generally speaking, having a way to get a T* which can possibly be NULL. (T
in this case is int&)

Fernando Cacciola

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