Re: [C++-sig] Problem with map_indexing_suite

2010-07-12 Thread Damien Dupuis
Since I didn't find any solution when using map_indexing_suite, I wrote a simple wrapping that works in my case : == #include #include namespace myProject { template struct map_item { typedef std::map Map; static Val get(Map & self, const Key idx) { if (self.find(idx

Re: [C++-sig] Problem with map_indexing_suite

2010-07-12 Thread John Reid
Damien Dupuis wrote: I'm trying to wrap a whole C++ that contains a lot of access to std::vector and std::map. I managed to wrap vectors but i've got problems with maps. The following simple example fails to compile with the error: error: no match for call to ‘(const boost::python::detail::

Re: [C++-sig] Problem with map_indexing_suite

2010-07-12 Thread John Reid
Pentix wrote: Hi, Damien! I've got exactly the same problem... Have you got any achievements? Have a look at: http://www.boost.org/doc/libs/1_43_0/libs/python/doc/tutorial/doc/html/python/functions.html#python.call_policies Damien Dupuis wrote: error: no match for call to ‘(const boost::

Re: [C++-sig] Problem with map_indexing_suite

2010-07-12 Thread Pentix
Hi, Damien! I've got exactly the same problem... Have you got any achievements? Damien Dupuis wrote: > > error: no match for call to ‘(const > boost::python::detail::specify_a_return_value_policy_to_wrap_functions_returning) > (X*)‘ > -- View this message in context: http://old.nabble.com

[C++-sig] Problem with map_indexing_suite

2010-06-18 Thread Damien Dupuis
I'm trying to wrap a whole C++ that contains a lot of access to std::vector and std::map. I managed to wrap vectors but i've got problems with maps. The following simple example fails to compile with the error: error: no match for call to ‘(const boost::python::detail::specify_a_return_value_po