Reference are always lvalue?



 DEVELOP > c-Plus-Plus > Reference are always lvalue?

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: DEVELOP > c-Plus-Plus
User: "George2"
Date: 21 Dec 2007 06:12:51 AM
Object: Reference are always lvalue?
Hello everyone,
Is the conclusion correct? Both const reference and non-const
reference are lvalue?
I think it is true and I can not find a sample which does not follow
it.
thanks in advance,
George
.

User: "Victor Bazarov"

Title: Re: Reference are always lvalue? 21 Dec 2007 08:24:17 AM
George2 wrote:

Is the conclusion correct? Both const reference and non-const
reference are lvalue?

I think it is true and I can not find a sample which does not follow
it.

If an expression has the type 'reference to T', it's an lvalue. See
[expr]/6. I presume by "const reference" and "non-const reference"
you actually mean "reference to const" and "reference to non-const".
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
.


  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER