
12 Jun
2005
12 Jun
'05
7:28 p.m.
"Peter Dimov" <pdimov@mmltd.net> writes:
David Abrahams wrote:
"Arkadiy Vertleyb" <vertleyb@hotmail.com> writes:
Just to make sure that we are on the same page, did you mean we mis-report const non-references as const lvalues? For example, if a function is declared as "const int foo()" (which makes little sense to me, but possible), LVALUE_TYPEOF would yield: "const int&".
Yes, that's what I meant. I'm more concerned with returning const class types, for what it's worth.
As well you should be :-) because rvalues of non-class types are never cv-qualified, 3.10/9.
Why else would I be more concerned with class types? :-) -- Dave Abrahams Boost Consulting www.boost-consulting.com