Boost C++ Libraries: Ticket #7548: Impossible to query for std::vector<double> converter registration https://svn.boost.org/trac10/ticket/7548 <p> I have been hitting this wall for some months now and produced some minimalistic code that shows the problem: </p> <pre class="wiki">#include &lt;boost/python.hpp&gt; #include &lt;vector&gt; #include &lt;iostream&gt; std::vector&lt;double&gt; list_of_doubles() { std::vector&lt;double&gt; retval; retval.push_back(3); retval.push_back(2); return retval; } // Instantiate the core module. BOOST_PYTHON_MODULE(boost_debug) { //We check if a converter for std::vector has been registered boost::python::type_info info = boost::python::type_id&lt;std::vector&lt;double&gt; &gt;(); const boost::python::converter::registration* reg = boost::python::converter::registry::query(info); //We output to screen the result (should be NULL) std::cout &lt;&lt; reg &lt;&lt; " "; //We also expose a function that needs such a conversion (to_python) using namespace boost::python; def("list_of_doubles",list_of_doubles); } </pre><p> in python: </p> <pre class="wiki">import boost_debug </pre><p> and the result (which should be zero) is instead an address: 0x7f9bc3c4c600 </p> <p> Even more absurdly, if we comment the line "def("list_of_doubles",list_of_doubles);" things actually go back to normality. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7548 Trac 1.4.3 anonymous Sun, 02 Jun 2013 18:02:16 GMT <link>https://svn.boost.org/trac10/ticket/7548#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7548#comment:1</guid> <description> <p> See this answer on stackoverflow: <a class="ext-link" href="http://stackoverflow.com/a/13017303/959926"><span class="icon">​</span>http://stackoverflow.com/a/13017303/959926</a> </p> <p> It worked for me. </p> </description> <category>Ticket</category> </item> </channel> </rss>