Boost logo

Boost :

From: Dirk Gerrits (dirk_at_[hidden])
Date: 2002-11-22 13:29:35


Fernando Cacciola wrote:

> ----- Original Message -----
> From: "Dirk Gerrits"
> To:
> 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) ) ...

Ooh. Nice! :)

Dirk Gerrits


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