Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
class ExpandMe {}; // Prevents some confusions...
typedef unsigned long ulong; // (or char array;)
template <class Mfp> union Trick
{
Mfp ptr;
ulong img;
Trick(Mfp p)
{ if (sizeof ptr > sizeof img) throw ExpandMe();
img = 0; ptr = p;
}
operator ulong() { return img; }
}; // Now include Ion::xclass dcl...
void (xclass::*a)() = &xclass::abd; // abd (as declared;)
typedef void (xclass::*memfunptr)();
...
typedef Trick<memfunptr> Xmfp;
cout << "MemFunPtr is:" << hex << Xmfp(a) << endl;