From: Sam Partington (sam.partington_at_[hidden])
Date: 2003-11-25 11:17:57
Peter Dimov <mailto:pdimov_at_[hidden]> wrote:
> Sam Partington wrote:
>> Documentation of Peters idiom in a very limited form, including why
>> it is not suitable in a generic case is available in the rationale
>> part of the bool_testable notes :
> I'm not sure whether the statement "this implementation required the
> user to provide operator!" is correct. Operator! in shared_ptr is a
> Borland-specific workaround.
Its not incorrect in what it meant to say, though it is perhaps badly
phrased. If I rephrase it to something like :
"in the safe-bool implementation that was suggested, the user would provide
operator! and a operator bool-like conversion is provided by the library.
In contrast, the implementation of bool_testable that was decided upon, the
user provides operator bool, and the library makes this safe, and provides
I.e. the sentence was referring to the particular implementation of the
safe-bool idiom that was suggested for bool_testable. Not for the safe-bool
idiom as a whole.
This e-mail has been sent from Imagination Technologies Limited. PowerVR, Metagence, Ensigma
and PURE Digital are divisions of Imagination Technologies Limited.
The information contained in this e-mail, including any attachment, is confidential and may be
legally privileged. It is intended solely for the addressee(s) and access to this e-mail by
anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying or
distribution or use of the information contained in this e-mail, is prohibited and may be unlawful.
If you have received this e-mail in error, please notify the sender by return e-mail and then
delete it from your system.
Internet communications cannot be guaranteed to be secure, error or virus-free. The sender does
not accept liability for any errors or omissions which arise as a result.
Any views expressed in this message are those of the author, except where the author specifies and,
with authority, states them to be the views of Imagination Technologies Ltd.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk