[C++-sig] Tiny fix to the FAQ please
Niall Douglas
s_sourceforge at nedprod.com
Tue Jul 6 12:39:48 CEST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
In the FAQ "How do I handle void * conversion?" a tiny thing needs
changing. Instead of declaring void_ as struct void_; you should use:
struct void_ {};
This is due to a bug in GCC whereby corrupted typeinfo can be emitted
for undefined types. Unfortunately it only happens in my 60Mb shared
object ie; truly massive linking & relocation requirements and thus I
can't condense down an example for reporting. However, the simple
trick above works fine.
Cheers,
Niall
-----BEGIN PGP SIGNATURE-----
Version: idw's PGP-Frontend 4.9.6.1 / 9-2003 + PGP 8.0.2
iQA/AwUBQOqBdcEcvDLFGKbPEQKs2gCeJvFDHCTkzRmBmG/xSXEeRL/F3g8AoK/C
snS/4X5pQVWbRFXfMn23BR6C
=y62G
-----END PGP SIGNATURE-----
More information about the Cplusplus-sig
mailing list