21 Sep
2007
21 Sep
'07
6:23 a.m.
Joaquín Mª López Muñoz ha escrito:
Hi Paul,
[...]
So, instead of
typedef typename mi::nth_index<0>::type mi_by_value;
you can write
typedef typename nth_index
::type mi_by_value;
Hello Paul, upon concidentally revisiting this same problem when answering the post at http://lists.boost.org/boost-users/2007/09/30953.php , I've realized that GCC has no issues with dependent nested types, the problem is that you were missing a dependent template keyword: typedef typename mi::template nth_index<0>::type mi_by_value; Of course, the resort to global nth_index<...> is also valid. Sorry for the confusion, Joaquín M López Muñoz Telefónica, Investigación y Desarrollo