[C++-sig] vector_indexing_suite and std::string

Joel de Guzman joel at boost-consulting.com
Thu Mar 18 14:06:32 CET 2004


greg Landrum wrote:
> 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!

Thanks for answering Greg, Jonathan. Hopefully, with the
new indexing suite (by Raoul) all these will be non issues.

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net




More information about the Cplusplus-sig mailing list