
23 Jan
2014
23 Jan
'14
10:53 a.m.
On 22-01-2014 14:05, Dominique Devienne wrote:
On Wed, Jan 22, 2014 at 1:21 PM, Thorsten Ottosen < thorsten.ottosen@dezide.com> wrote:
Completely reliable. You just bind the first object to some wrapper class object which provide the overloaded operators (via delegation).
This seems to rely on an op->* operator, which has lower precedence than unary op* (dereference), and the macro INTERNAL_CATCH_TEST uses un-parenthesized Catch::ExpressionDecomposer()->*expr, so won't this break if I do MACRO(*lhs_ptr == *rhs_ptr)?
Hm. I haven't tried that. Isn't it sufficient that ->* has higher precedence than the comparison operators? -Thorsten