Re: [boost] [optional] update
by other posts by this author
Sep 17 2003 3:04PM messages near this date
Re: [boost] [optional] update
|
Re: [boost] [optional] update
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
_______________________________________________
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
|