pointer-to-member-functions fixlets, NULL may be (void *)0 on ancient

compilers which is not suitable here.
This commit is contained in:
gbeauche 2005-06-22 12:25:43 +00:00
parent c686f5451c
commit 3aa78832fc

View File

@ -27,8 +27,8 @@
template< class PMF, class PF >
inline PF nv_mem_fun_of(PMF pmf) {
if (pmf == NULL)
return NULL;
if (pmf == 0)
return 0;
union { PMF pmf; uintptr p[2]; } x;
x.pmf = pmf;
#if defined(__GXX_ABI_VERSION) /* GCC >= 3.0 */