From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-12-02 10:32:47
"Eric Niebler" <eric_at_[hidden]> wrote in message
> Jonathan Turkanis wrote:
> > Yeah, that's what I was thinking about last night. I was trying to see how
> > I could approximate decltype.
> Here is an interesting way to "distinguish" between L-values and
> R-values. The following program uses the properties of the conditional
> operator to implement an IS_LVALUE macro that detects the value-ness of
> an expression and prints its determination.
I thought of using the conditional operator as I was lying in bed last night. I
was going to try it this morning ;-)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk