I have a map<int<map<int,char> > variable.
It is declared at the private section of my .h file :
map<unsigned int,std::map<unsigned int,char> > map__type;
I also have :
vector<string> vecHheader;
I use it in this function with sufix const keyword
myfunction (bla bla) const
Ok I can return vector information but not map ???
( I have the const error : ... bla bla bla dicard qualifiers.)
Whats happen ? I can not use map into a const functions ? I want only to returning information !
Any idea ? Thanks .
And , If I made mymap mutable... What can I expect from mymap or const function perfomance ?
Bookmarks