
Jeffrey Lee Hellrung, Jr. escribió:
On 5/30/2010 2:39 AM, Joaquin M Lopez Munoz wrote:
* make_guard_if<cond> should construct the guard if cond is true (I overlooked the fact that your implementation does the opposite, sorry). I think this is the obvious semantics for anyone reading the construct: make a guard if so and so. * It'd be nice if we have both the following:
template<typename IsNull, ...> inline typename null_guard_return<..>::type make_guard_if(...)
template<bool is_null, ...> inline typename null_guard_return<..>::type make_guard_if_c(...)
Of course, you mean IsNonNull / is_non_null (or equivalent semantics) for the template parameters...
Absolutely, this is what I meant, thanks for the correction. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo