Boost C++ Libraries: Ticket #10933: Boost.Python incomplete type in "contains" https://svn.boost.org/trac10/ticket/10933 <p> Hi, </p> <p> I am compiling Boost.Python with <strong>nvcc/6.5</strong>, <strong>gcc/4.6.2</strong>, <strong>python/2.7.8</strong> and <strong>cmake/3.0.1</strong> right now. </p> <p> As a side note, I modified the standard <em><a class="missing wiki">FindPythonLibs</a>.cmake</em> a bit to match the <em>cuda_add_library calls</em>. </p> <p> During compile, I get the error </p> <pre class="wiki">boost/python/object_core.hpp(499): error: function "boost::python::api::object_operators&lt;U&gt;::attr(const char *) const" returns incomplete type "boost::python::api::const_object_attribute" </pre><p> from <em>include/boost/python/object_core.hpp</em> </p> <pre class="wiki">template &lt;typename U&gt; template &lt;class T&gt; object api::object_operators&lt;U&gt;::contains(T const&amp; key) const { return this-&gt;attr("__contains__")(object(key)); } </pre><p> Replacing the return statement with </p> <pre class="wiki"> return (*this)[object(key)]; </pre><p> seems to compile and my modules work, but I am not sure if the functionality is still ok since I have no idea what this function actually does (nor how to test/trigger it). </p> <p> It would be great if we can fix that compile error and someone could give me a review. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10933 Trac 1.4.3 a.huebl@… Wed, 14 Jan 2015 15:21:31 GMT attachment set https://svn.boost.org/trac10/ticket/10933 https://svn.boost.org/trac10/ticket/10933 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">patchContainsPython.txt</span> </li> </ul> <p> Patch: Fix Incomplete Type </p> Ticket Stefan Seefeld Tue, 31 Mar 2015 02:21:30 GMT owner changed https://svn.boost.org/trac10/ticket/10933#comment:1 https://svn.boost.org/trac10/ticket/10933#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Ralf W. Grosse-Kunstleve</span> to <span class="trac-author">Stefan Seefeld</span> </li> </ul> Ticket