Connecting Tech Pros Worldwide Help | Site Map

Reference are always lvalue?

 
LinkBack Thread Tools Search this Thread
  #1  
Old December 21st, 2007, 11:15 AM
George2
Guest
 
Posts: n/a
Default 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

  #2  
Old December 21st, 2007, 01:25 PM
Victor Bazarov
Guest
 
Posts: n/a
Default Re: Reference are always lvalue?

George2 wrote:
Quote:
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


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.