Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::variant construction,assignment
From: peter_foelsche_at_[hidden]
Date: 2008-10-09 16:39:12


bool variant::empty() const;

http://www.boost.org/doc/libs/1_36_0/doc/html/boost/variant.html

-----Original Message-----
From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Steven Watanabe
Sent: Thursday, October 09, 2008 13:36
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] boost::variant construction,assignment

AMDG

peter_foelsche_at_[hidden] wrote:
> boost::variant has already the notion that it has not been set with any value.
> So there is no need to make it optional.

Not unless you use boost::blank.

http://www.boost.org/doc/html/variant/design.html#variant.design.never-empty

In Christ,
Steven Watanabe

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


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