
2 Dec
2004
2 Dec
'04
2:05 a.m.
Jonathan Turkanis wrote:
"Eric Niebler" <eric@boost-consulting.com> 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 <snip>
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