[C++-sig] [Boost.Python] map_indexing_suite problem

Joel de Guzman djowel at gmail.com
Mon Nov 21 05:54:22 CET 2005


Joel de Guzman wrote:
> Jan Langer wrote:
> 
>>Hello,
>>I ran into a problem with Boost.Python exporting a std::map. I used the
>>following code below. I use Boost 1.33.0 and everything compiles fine.
>>
> 
> 
> Have you tried setting NoProxy template parameter to true?
> 
>     class_ <map_t, true> ("test_map")

This is the same issue as discussed in:
http://mail.python.org/pipermail/c++-sig/2004-March/007029.html

I've just added a fix for this that regards std::string and
std::complex as no-proxy types.

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



More information about the Cplusplus-sig mailing list