[C++-sig] No automatic upcasting with std::shared_ptr in function calls?

2012-04-20 Thread VáclavŠmilauer
Hello, I have a sample hierarchy of polymorphic classes (A from which B inherits). One of them (A1, B1) is managed with boost::shared_ptr, the other one (A2, B2) via std::shared_ptr (I defined the get_pointer template for std::shared_ptr). When I call f1(boost::shared_ptr) with an object B1 from

[C++-sig] Re : Re : boost::python: C++/Python function overload issue

2012-04-20 Thread christophe jean-joseph
Thank you very much. I knew the link already but it made me read my code again and realize that I forgot to reflect the overloaded functions with boost::python. Christophe Jean-Joseph De : JS Unkn0wn À : christophe jean-joseph ; Development of Python/C++ i

[C++-sig] boost python writing converters for list to std::vector

2012-04-20 Thread Helfer Thomas
Hi, using http://misspent.wordpress.com/2009/09/27/how-to-write-boost-python-converters/, I tried to write a converter for list to std::vector (In the example, T will be double). The code (see converter.cxx) I wrote is still in early stage of development (no check) but compiles fine on ubuntu o