[C++-sig] Re: Problem with different return types.

Niall Douglas s_sourceforge at nedprod.com
Sun Feb 8 08:12:23 CET 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 7 Feb 2004 at 11:27, Hanz Meizer wrote:

> > delete the def("getC", (const C& (*)(void) const) &getC) version.
> > Python never calls from within a const context anyway.
> 
> Does anyone happen to know how to do this in pyste? I could write
> exclude(C.getC), but this removes both versions.

I personally hacked pyste to stop it for this particular case (as 
well as casting off any throw() modifiers), but here I recommend you 
diff your fixed version agains the pyste output and simply reapply 
the patch after every regeneration. I do this a lot to munge in 
custom list converters.

Cheers,
Niall





-----BEGIN PGP SIGNATURE-----
Version: idw's PGP-Frontend 4.9.6.1 / 9-2003 + PGP 8.0.2

iQA/AwUBQCXhWMEcvDLFGKbPEQI54wCgz3u6N54RW7XJ8qSRY97rUzJcIeEAoM1G
cG7OcEj25zgPbaGtqYUFivST
=MQnu
-----END PGP SIGNATURE-----




More information about the Cplusplus-sig mailing list