> -----Original Message-----
> From: Shaul Karl [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 04, 2002 4:57 PM
> To: [EMAIL PROTECTED]
> Subject: [C++] What is wrong with map<string, string&> ?
> 
> 
> Attached a short program and a longer compilation output.
> If I understand it correctly then the type
> 
>     map<string, string&>
> 
> is not acceptable. 
> 
> But why? The compilation output mentions `reference to 
> reference'. Can 
> you elaborate on this or do these 3 words say it all? Is this 
> up to me 

A type of value part of a map must be assignable. Reference type is 
not assignable, i.e. once you had initialised a reference, you can not
change its referee, only value of referee.

> 
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
> 

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to