From: Eric Niebler (eric_at_[hidden])
Date: 2004-12-01 21:05:31
Jonathan Turkanis wrote:
> "Eric Niebler" <eric_at_[hidden]> wrote:
>>If anyone knows of a foolproof
>>way to distinguish lvalues from rvalues, I'm all ears.
> Oddly enough, I was thinking about this last night, and wrote the attached code.
> It may be wildly wrong
Unfortunately, it is. There is a precedence problem because the
expression to which the macro expands is not enclosed in parens. In your
tests, the ! is only applied to part of the expression, leading to false
positives. Keep trying though. :-)
-- Eric Niebler Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk