Boost logo

Boost :

Subject: Re: [boost] [multiindex] internal scope_guard has changed access from public to protected
From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2010-05-29 20:09:49


Jeffrey Lee Hellrung, Jr. skrev:
> On 5/29/2010 2:31 PM, Thorsten Ottosen wrote:
>> Jeffrey Lee Hellrung, Jr. skrev:
>>

>> make_guard_if<boost::has_nothrow_copy<T>::value>( ... )
>>

> Certainly, if one sees
>
> do_something_if< cond >( ... )
>
> you can sympathize with one reading this as "if cond, do something" ;)
> Consider those who may not be intimately familiar with make_guard_if but
> stumble upon such a construct in reviewing code. I think I, for one,
> would be confused.
>
> But the choice of semantics is ultimately up to you and Joaquin.

In case that is confusing, I would prefer to spell the functions

   make_xxx_guard_unless<>

or

   make_xxx_guard_if_not<>

-Thorsten


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