On Wednesday 13 March 2002 6:08 pm, Lars Gullik Bjønnes wrote:
> Angus Leeming <[EMAIL PROTECTED]> writes:
> 
> | If I have a map<key, value> some_map, can I create a vector of the keys 
also, 
> | vector<key const &> ref_vec? I can create a vector<key const *> ptr_vec.
> >
> | I'm thinking of my Bibtex data base of course.
> 
> You cannot "reset" an reference;
> 
> string a("Hello There!");
> string & b = a;
> string c("How are you?");
> b = c; // error
> 
> Then ponder about what the problem with vector<Type const &> is.

Gotcha! I create a vector of references and then I try to set their value.
Thank you.
A

Reply via email to