hyling
14th December 2006, 23:51
Hi,
I'm stumped... how does this work? This piece of code is from qobject.h in the function qFindChildren. It looks like it dereferences a NULL pointer to get the staticMetaObject?? :eek:
reinterpret_cast<T>(0)->staticMetaObject
Thanks!
Hua-Ying
I'm stumped... how does this work? This piece of code is from qobject.h in the function qFindChildren. It looks like it dereferences a NULL pointer to get the staticMetaObject?? :eek:
reinterpret_cast<T>(0)->staticMetaObject
Thanks!
Hua-Ying