Original Post
I'm trying to store a member function pointer into a generic data type, uint for example. I've read that member function pointers can take up to 16 bytes using the MSVC compiler, so I'm trying to store the MFP into an array of ints. This isn't compiling, it's giving me the C2440 error. Is there anyway to do this? Thanks
template< typename _METHOD >
foo( _METHOD method )
{
unsigned int methodStorage[4];
reinterpret_cast<_METHOD>(methodStorage) = method;
}