relational::operator bool()
Richard B. Kreckel
kreckel at thep.physik.uni-mainz.de
Fri Nov 16 21:03:07 CET 2001
On Fri, 16 Nov 2001, Douglas Gregor wrote:
> I can guess at what the criterion would be for it to _not_ break on a given
> platform:
> 1) sizeof(bool) == sizeof(pointer-to-member-function)
> 2) a NULL pointer-to-member has integral value 0
>
> I would guess that the first condition does not hold for Linux-x86/GCC. I
> seem to recall that pointers-to-members of polymorphic classes are "fat",
> because they need to carry some run-time type information with them to deal
> with the possibilities of multiple/virtual inheritance.
Questions of sizeof() aside, I guess it can't work at all because binaries
want `GiNaC::relational::operator bool(void) const' which the poor linker
cannt whip up fast enough... :-)
Cheers
-richy.
--
Richard B. Kreckel
<Richard.Kreckel at Uni-Mainz.DE>
<http://wwwthep.physik.uni-mainz.de/~kreckel/>
More information about the GiNaC-devel
mailing list