10 May
2007
10 May
'07
8:12 a.m.
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/