Guess someone why this code fails ? (g++3.3)
---- begin -----------------------
#include
#include <iostream>
using namespace std;
using namespace boost;
int foo() { return 10; }
template
struct Translator;
template
struct Translator :
function_traits<FnType>
{
typedef result_type type;
};
int main(int argc, char** argv)
{
Translator::type x;
}
------------------- end code ------------------
error: ISO C++ forbids declaration of `result_type'
with no type
--------------------- end error -------------------
And another question: is there a portable equivalent
to:
Translator
Thanks
______________________________________________
Renovamos el Correo Yahoo!: ¡100 MB GRATIS!
Nuevos servicios, más seguridad
http://correo.yahoo.es