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

Niall Douglas s_sourceforge at nedprod.com
Fri Feb 6 19:58:36 CET 2004


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

On 6 Feb 2004 at 11:22, Hanz Meizer wrote:

> virtual const C& getC(void ) const = 0;
> virtual C& getC(void) = 0;
> 
> Is it possible to export both functions? Is it possible to export one
> of them, and ignore the other? I've tried several ways to include it,
> but both did not work out. Currently I'm using pythe to generate the
> interface class. So my other question is: If it's possible, how can I
> integrate the solution in pyste? :)

delete the def("getC", (const C& (*)(void) const) &getC) version. 
Python never calls from within a const context anyway.

Cheers,
Niall





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

iQA/AwUBQCPj3MEcvDLFGKbPEQLAkgCeLLu7oAalXtkOQb/rYwJdqQPianQAoPcs
/jS5MUAH5YcfiKwW5wE3n/Ce
=AzGw
-----END PGP SIGNATURE-----




More information about the Cplusplus-sig mailing list