|
Boost : |
From: Daryle Walker (darylew_at_[hidden])
Date: 2004-01-28 16:25:01
On 1/26/04 4:50 PM, "Hurd, Matthew" <hurdm_at_[hidden]> wrote:
>> On Behalf Of Sean Kelly
[SNIP]
>> or better yet:
>>
>> if( lock const& l = lock(guard,t))
>
> I like this last one, though I suspect I'll end up with
>
> if (lock lk(guard,t))
>
> in my code as it will be the first thing I'll think of.
[TRUNCATE]
Did you see my last message in this thread? I said that the rules of C++
_FORBID_ creation of multiple objects and/or use of the constructor call
syntax when using object creation with the condition of an "if" or "while".
The single object syntax with "=" is the only one allowed.
-- Daryle Walker Mac, Internet, and Video Game Junkie darylew AT hotmail DOT com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk