gcc-3.4 requires 'typename' to use map in a template?

Dan Kegel dkegel@ixiacom.com
Fri Oct 3 00:59:00 GMT 2003


David Carlton wrote:
> My understanding is that it's not that it needs help figuring out that
> mymap is a type, it needs help figuring out that mymap::iterator is a
> type.  (Which it might or might not be for different values of T, if
> you inserted some particularly perverse specializations of std::map.)

Ahh.  It makes sense.  Thanks!
- Dan



More information about the Gcc mailing list