Spot on! Thanks for that. reading my templates book has given me a good idea of why, so hopefully I wont make the same mistake again! James
-----Original Message----- From: Joaquín Mª López Muñoz [mailto:joaquin@tid.es] Sent: 25 April 2006 15:17 To: boost-users@lists.boost.org Subject: Re: [Boost-users] Problem with iterator, map, shared_ptr and templated class
James Hughes ha escrito:
Hello all,
I am a bit stumped by a compile fault..
This is a fragment of the code
[...]
for (handlerMap::iterator pos = LogMap.begin(); pos
!= LogMap.end();
I think this has to be
for (typename handlerMap::iterator pos = LogMap.begin(); pos != LogMap.end();
HTH,
Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users