ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
Re: [boost] [optional] update
by Mat Marcus other posts by this author
Sep 17 2003 3:47PM messages near this date
Re: [boost] [optional] update | [boost] Re: Re: Re: [optional] update
--On Wednesday, September 17, 2003 11:04 AM -0400 gregod@[...].edu 
wrote:

>  On Wednesday 17 September 2003 10:57 am, Mat Marcus wrote:
> >    * Safe optional<bool>'s as tri-bools would be quite useful to
> >    me. I personally would sacrifice the convenience of testing
> > without using is_initialized() to gain tri-bools but I don't want
> > to cover old territory. Perhaps there's some other way of making
> > optional<bool>'s safer to use. What would you think of, say, using
> > enable_if (or better disable_if) to disable implicit bool
> > conversion and operator! for when T == bool (or when T already
> > is_convertible to bool)?
> >
> >  - Mat
> 
>  Why not use a real tribool? There's one in the sandbox.
> 
>  	Doug

Thanks, I will have a look. The above question still holds some 
interest for me though. That is, I would like to be able to "safely" 
use optional uniformly, including optional<bool>  even in the cases 
when I am not specifically trying to mimic a tribool.

 - Mat
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Fernando Cacciola
Fernando Cacciola
Fernando Cacciola
Mat Marcus

Guillaume Melquiond

Mat Marcus
Eric Friedman
Hamish Mackenzie
Fernando Cacciola
Eric Friedman
Markus Werle
Hamish Mackenzie
Mat Marcus
Mat Marcus
Hamish Mackenzie
Fernando Cacciola
Hamish Mackenzie
Fernando Cacciola
David Abrahams
Eric Friedman
Fernando Cacciola
Hamish Mackenzie
Russell Hind
Hamish Mackenzie
Joel de Guzman

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved