------- Comment #8 from gcc_bugzilla dot 20 dot marcelitom at inboxclean dot com 2010-02-10 21:23 ------- Thanks Paolo. I did understand that map was passing a <const char *>. I wrongly assumed that it was using it to copy the pointed string to the map, but I learned from your first post that it was only copying the pointer.
May be I did not express myself clear, my surprise was that it was only copying the pointer and not the string. And yes, I wanted to use a string in the first place... I don't know where I got that it was not possible to use string as a template for map, I was wrong. I will use string then, thanks! -- gcc_bugzilla dot 20 dot marcelitom at inboxclean dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gcc_bugzilla dot 20 dot | |marcelitom at inboxclean dot | |com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43014