Im writing this small template class inheriting from an interface.
Inside my class I declared a variable I'd like to use outside and put it into a dispatch table.
when I try to compile my program it throws me an error
This is my source code:
template <typename T> class Operand;
typedef struct s_typeInfo
{
int enum_nb;
bool (*fct_cast)(void);
} t_typeInfo;
t_typeInfo typeInfo[] =
{
{0, Operand::castInt8},
};
template <typename T>
class Operand : public IOperand {
...
bool castInt8(void) {...}
}
I have been trying to solve this problem in many different ways, but no one them work. How could I fix it? Thank you in advance :)