Boost logo

Boost :

From: Fernando Cacciola (fernando_cacciola_at_[hidden])
Date: 2002-11-22 11:22:40


----- Original Message -----
From: "Dirk Gerrits" <dirk_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Friday, November 22, 2002 12:36 PM
Subject: [boost] Re: Formal Review Request: class optional<>

> [snipped]
>
> I guess I'd use if (peek(opt) != 0) or something. It's not that !!
> is so ugly, but it's not very clear IMHO.
>
Another supported alternative which I forgot to mention is:

if ( initialized(opt) ) ...

Fernando Cacciola


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk