B
Blaless
Hi,
I have a problem compiling the next piece of code under Linux using g++
(both 3.4.3 and 4.0.1)
template<typename T>
class Table{
public:
// typedef T (TBoxTest::*GetterType)();
typedef T (*Type)();
};
It should provide a typedef to a function pointer of which the return
type is defined by the template argument. Both the line which is
commented out and the line under it gives the next error message in
g++;
error: ISO C++ forbids declaration of `Type' with no type
Does anyone have any idea how to solve this?
Kind regards,
Mark Schroders
I have a problem compiling the next piece of code under Linux using g++
(both 3.4.3 and 4.0.1)
template<typename T>
class Table{
public:
// typedef T (TBoxTest::*GetterType)();
typedef T (*Type)();
};
It should provide a typedef to a function pointer of which the return
type is defined by the template argument. Both the line which is
commented out and the line under it gives the next error message in
g++;
error: ISO C++ forbids declaration of `Type' with no type
Does anyone have any idea how to solve this?
Kind regards,
Mark Schroders