Boost logo

Boost Users :

From: JOAQUIN M. LOPEZ MUÑOZ (joaquin_at_[hidden])
Date: 2008-09-03 10:55:08


________________________________________
De: boost-users-bounces_at_[hidden] [boost-users-bounces_at_[hidden]] En nombre de Kevin Jenkins [gameprogrammer_at_[hidden]]
Enviado el: miércoles, 03 de septiembre de 2008 16:47
Para: boost-users_at_[hidden]
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


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