Boost C++ Libraries: Ticket #3: automatic conversion and overload proble https://svn.boost.org/trac10/ticket/3 <pre class="wiki">When overload is used, if functions whose parameters use automatic conversions are declared first, the functinos whose parameters are wrapped extension classes do not resolve. I attached a file which demonstrates what happens. Two automatic conversions are defined, on GeVector2 and GeVector3. Then 3 overloaded functions are defined and exposed, the first two using the automatic conversions from above, and the third using a simple Foo class. When the functions using the automatic conversions are declared after the function taking Foo as a parameter, it all works. Here is your test program: import prob f = prob.Foo() print prob.testfoo( f ) However, the automatic conversions work between themselves (i.e. a failed conversion to a GeVector2 when trying to convert a GeVector3 will not fail the conversion to GeVector3). I also found that by throwing the exception unconditinoally at the beginning of the conversion functions makes it work for the wrapped ext.class. This indicates that the following code is the culprit: // Convert from a list of two. boost::python::list l = from_python( p, boost::python::type&lt;boost::python::list&gt;() ); runnign that makes the subsequent intent to convert to a wrapped class fail somehow. Any idea? </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3 Trac 1.4.3 blais Mon, 24 Sep 2001 22:16:44 GMT <link>https://svn.boost.org/trac10/ticket/3#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=10996 sorry, this one should go to dave_abrahams </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>blais</dc:creator> <pubDate>Mon, 24 Sep 2001 22:18:26 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3#comment:2</guid> <description> <pre class="wiki">Logged In: YES user_id=10996 ouch... my file didn't attach, file can be found at http://www.iro.umontreal.ca/~blais/prob.cpp sorry </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>david_abrahams</dc:creator> <pubDate>Wed, 28 May 2003 10:20:55 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/3#comment:3 https://svn.boost.org/trac10/ticket/3#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> Ticket Robert Ramey Fri, 11 Jun 2010 04:11:25 GMT resolution changed https://svn.boost.org/trac10/ticket/3#comment:4 https://svn.boost.org/trac10/ticket/3#comment:4 <ul> <li><strong>resolution</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/62785" title="fix #3 for version_type">[62785]</a>) fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3" title="#3: Bugs: automatic conversion and overload proble (closed: fixed)">#3</a> for version_type </p> Ticket Robert Ramey Fri, 11 Jun 2010 04:12:47 GMT <link>https://svn.boost.org/trac10/ticket/3#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3#comment:5</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/62787" title="fix #3 for version_type">[62787]</a>) fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3" title="#3: Bugs: automatic conversion and overload proble (closed: fixed)">#3</a> for version_type </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 02 Jun 2015 05:50:55 GMT</pubDate> <title>severity set https://svn.boost.org/trac10/ticket/3#comment:6 https://svn.boost.org/trac10/ticket/3#comment:6 <ul> <li><strong>severity</strong> → <span class="trac-field-new">Problem</span> </li> </ul> <p> hello world </p> Ticket