> 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





_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to