Re: [Boost-users] [multi-index]/shared_ptr template issue -compiles on MSVC8 but not gcc (solved)
21 Sep
2007
21 Sep
'07
2:41 a.m.
// this AGE_INDEX does not on gcc but DOES compile on MSVC8 typedef AgedMap<T>::AGEDMAPTYPE::index<agetag>::type AGE_INDEX; The correct syntax is typedef typename AgedMap<T>::AGEDMAPTYPE::template index<agetag>::type AGE_INDEX;
(note the intervening template keyword) which, just for succintness, in your particular ought to be the same, I think, as .....
The above works (combo change of typename and ::template) so I've settled on using for brevity: typedef typename MIContainer::template index<agetag>::type AGE_INDEX; typedef typename AGE_INDEX::iterator AGE_ITER; thanks, Mark
6278
Age (days ago)
6278
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mark Schlegel