I need to work with pointer-to-functions, specially pointer-to-members of a class, and I got myself stucked when trying to return the pointer through a method. Please, take a time to view the code:
\CFunc.h:34 expected unqualified-id before ')' token
\CFunc.h:34 expected ';' at end of member declaration
\CFunc.h:34 ISO C++ forbids declaration of 'getFuncFunctionAt' with no type
[-fpermissive]
and
1 2 3 4 5 6 7 8 9
\CFunc.h:35 must use '.*' or '->*' to call pointer-to-member function in
'((CFunc*)this)->CFunc::fx.std::vector<_Tp, _Alloc>::at [with _Tp =
CFunc::function_table, _Alloc = std::allocator<CFunc::function_table>,
std::vector<_Tp, _Alloc>::reference = CFunc::function_table&, std::vector<_Tp,
_Alloc>::size_type = unsigned int](p).CFunc::function_table::op_func (...)',
e.g. '(... ->* ((CFunc*)this)->CFunc::fx.std::vector<_Tp, _Alloc>::at [with _Tp
= CFunc::function_table, _Alloc = std::allocator<CFunc::function_table>,
std::vector<_Tp, _Alloc>::reference = CFunc::function_table&, std::vector<_Tp,
_Alloc>::size_type = unsigned int](p).CFunc::function_table::op_func) (...)'
I have no idea of how to solve those. Has anyone ever faced this problem? How to handle pointers-to-class-members?