
________________________________________ De: boost-users-bounces@lists.boost.org [boost-users-bounces@lists.boost.org] En nombre de Kevin Jenkins [gameprogrammer@rakkar.org] Enviado el: miércoles, 03 de septiembre de 2008 16:47 Para: boost-users@lists.boost.org Asunto: [Boost-users] Compile errors with boost::mpl::if on MinGW/Msys
Hi,
I'm trying to use typedef typename boost::mpl::if_ to choose between two structures, both with identical function names, so I can choose which function to call based on the template parameter type.
The code works fine on Visual Studio 2005. But in MinGW/MSys it returns:
RPC3_Boost.h:203: error: template argument 2 is invalid RPC3_Boost.h:203: error: template argument 3 is invalid RPC3_Boost.h:203: error: ISO C++ forbids declaration of `type' with no type [...] typename ReadBitstream, typename ReadPtr<T> >::type type;
I'd say those typenames should go. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo