Boost logo

Boost Users :

From: Igor R. (igor_rubinov_at_[hidden])
Date: 2008-05-06 12:13:05


> First I was going to suggest you to use mpl::front to retrieve the first element of the type sequence, but the new variant doc does not state that the first element of the type sequence will be created in the variant's memory. I remember to read that it was once the case.
 
At least, the document that appears at the site states so:
http://www.boost.org/doc/libs/1_35_0/doc/html/variant/tutorial.html#variant.tutorial.basic
 
http://www.boost.org/doc/libs/1_35_0/doc/html/variant/design.html#variant.design.never-empty
> You can try this: (But I am not sure if it works or is portable)
Yes, it seems to be what I need.
 
 
Thank you.
_________________________________________________________________
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline



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