[C++-sig] How to add new constructor in a class

2010-06-18 Thread vishal bayskar
In the below example I need to add a constructor A(). How to do that? class A{ public: A(int); int getA(); private: int a; }; I have tried add_declaration_code and add_registration_code but it seems that these will not work for the case of contructor. Does these work a

[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