
6 May
2008
6 May
'08
5:23 p.m.
AMDG Ovanes Markarian wrote:
At least what I read here is following:
The Guarantee
All instances |v| of type |variant http://www.boost.org/doc/libs/1_35_0/doc/html/boost/variant.html
| guarantee that |v| has constructed content of !!!one!!! of the types |!!!T/i!!!/|, even if an operation on |v| has previously failed. For me it means that it can be T2 or TN as well.
If, variant could only hold the first type there would be no reason to use it. The whole point of variant is that it can hold any of the types in the list. In Christ, Steven Watanabe