[C++-sig] Re: extract<const char *>
Niall Douglas
s_sourceforge at nedprod.com
Thu Dec 18 21:14:37 CET 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 18 Dec 2003 at 13:32, David Abrahams wrote:
> > Where does extract<> store its result?
>
> It doesn't. You're getting the char const* out of the temporary
> Python string you created. This is the same as the "attempt to return
> a dangling reference" issue. If you want something that will stick
> around, extract std::string.
Would there be any reason why trying to extract to a FXString (which
I have previously registered a converter for and it all works fine)
gives a converter not found error?
Cheers,
Niall
-----BEGIN PGP SIGNATURE-----
Version: idw's PGP-Frontend 4.9.6.1 / 9-2003 + PGP 8.0.2
iQA/AwUBP+IKrcEcvDLFGKbPEQKrMwCguQgn/n7uqlSHPEVw6YQHuVUSesYAoPFE
iFgOCyLvql9lPF6po+XZJxN0
=yWMt
-----END PGP SIGNATURE-----
More information about the Cplusplus-sig
mailing list