template issue
Paolo Carlini
pcarlini@suse.de
Tue Sep 14 16:47:00 GMT 2004
Darko Miletic wrote:
> I was playing around with std::for_each and std::map and came to an
> interresting problem.
Hi Darko,
this message isn't really suited for this list: please prefer gcc-help.
FWIW, adding a 'typename' in print_map_
(e.g., print_map<T, typename T::value_type>(map_);) leads to
succesfull compilation with g++, but you need a language lawyer to
really know whether g++ is right or not in requiring it...
Paolo.
More information about the Libstdc++
mailing list