Re: C++ - function pointers as a static data member.
First of all, it looks to me like you're returning a function pointer to a private function, which is a no-no. Is the declaration of cGetLength inside the O3DMVector declaration? If it's not, then you have another problem. Even though the functions have the same arguments and return types, their pointers are incompatible because C/C++ passes a hidden this pointer in all class functions.
|