Boost logo

Boost Users :

From: Ares Lagae (ares.lagae_at_[hidden])
Date: 2007-05-10 04:12:52


Jeffrey Holle wrote:

> Boost::variant if you want your variable to hold just one of the types,
> and hopefully you know what type is holds.
> You have to use a variant visitor to access it if you don't.
> Attempts to use get<int> when the type isn't castable to it will throw
> an exception.
>

Union-like containers are not suited, because I want a variable for _each_
of the types. See my other post about boost::fusion::map.

--
Ares Lagae
Computer Graphics Research Group, Katholieke Universiteit Leuven
http://www.cs.kuleuven.be/~ares/

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net