[C++-sig] indexing suite and std::vector<std::string>
Johan Rydberg
jrydberg at gnu.org
Sun Nov 12 00:07:17 CET 2006
Johan Rydberg <jrydberg at gnu.org> writes:
> One of the methods I wrap return a std::vector<std::string>, which
> needs to be wrapped as well. I was told about the indexing suite and
> gave it a try;
>
> class_<vector<string> >("std_string_vec")
> .def (vector_indexing_suite<vector<string> > ());
>
> [...]
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> TypeError: No Python class registered for C++ class std::string
Please ignore. If I had used my google-fu instead I would have found
the answer directly.
For future reference;
http://mail.python.org/pipermail/c++-sig/2004-March/007025.html
~j
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20061112/6e7dab83/attachment.pgp>
More information about the Cplusplus-sig
mailing list