|
Boost Users : |
From: Joaquín Mª López Muñoz (joaquin_at_[hidden])
Date: 2007-09-21 02:23:14
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<mi,0>::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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net