H
Heck
I'm using Visual Studio 2005, but i don't think that's (primarily)
where I've gone wrong.
I was experimenting, trying, by the way, to move into writing my own
iterator so that I can learn, ultimately, to write templates:
std::map< int, char [12]> cm;
char str0[12] = {'f','i','r','s','t',' ','t','e','x','t','\0'};
cm[0] = str0;
The compiler says about that assignment,
left operand must be l-value
What does this mean, what's happened here?
It compiles without error when the value arg in the map is instead a
char or a char *.
std::map< int, char *> cm;
Thanks for your help and knowledge.
Harold
where I've gone wrong.
I was experimenting, trying, by the way, to move into writing my own
iterator so that I can learn, ultimately, to write templates:
std::map< int, char [12]> cm;
char str0[12] = {'f','i','r','s','t',' ','t','e','x','t','\0'};
cm[0] = str0;
The compiler says about that assignment,
left operand must be l-value
What does this mean, what's happened here?
It compiles without error when the value arg in the map is instead a
char or a char *.
std::map< int, char *> cm;
Thanks for your help and knowledge.
Harold