[C++-sig] vector_indexing_suite and std::string
greg Landrum
greglandrum at mindspring.com
Wed Mar 17 06:15:05 CET 2004
At 05:48 PM 3/16/2004, Jonathan Brandmeyer wrote:
>Never mind, that isn't a bug with register_ptr_to_python(), it's a
>feature, as Dave tried to explain to me before ;). For vectors of
>std::string and std::complex, use the following workaround to make the
>indexing suite work:
>
>.def( vector_indexing_suite< std::vector<std::string>, true>())
> ^^^^
That cleared up the problem. Thanks Jonathan!
-greg
More information about the Cplusplus-sig
mailing list