
30 May
2010
30 May
'10
8:23 a.m.
On 5/29/2010 5:09 PM, Thorsten Ottosen wrote:
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
+1 for make_xxx_guard_unless (ala perl?) - Jeff