T
Tomás Ó hÉilidhe
I can recall a little trick for getting the address of an object and
bypassing any user-defined overload of the addressof operator. I think it
was something like:
T *p = reinterpret_cast<T*>( &reinterpret_cast<char&>(obj) );
Is that it exactly, or are people using something else?
bypassing any user-defined overload of the addressof operator. I think it
was something like:
T *p = reinterpret_cast<T*>( &reinterpret_cast<char&>(obj) );
Is that it exactly, or are people using something else?