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
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::
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::
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
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