id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 10933,"Boost.Python incomplete type in ""contains""",a.huebl@…,Stefan Seefeld,"Hi, I am compiling Boost.Python with '''nvcc/6.5''', '''gcc/4.6.2''', '''python/2.7.8''' and '''cmake/3.0.1''' right now. As a side note, I modified the standard ''FindPythonLibs.cmake'' a bit to match the ''cuda_add_library calls''. During compile, I get the error {{{ boost/python/object_core.hpp(499): error: function ""boost::python::api::object_operators::attr(const char *) const"" returns incomplete type ""boost::python::api::const_object_attribute"" }}} from ''include/boost/python/object_core.hpp'' {{{ template template object api::object_operators::contains(T const& key) const { return this->attr(""__contains__"")(object(key)); } }}} Replacing the return statement with {{{ return (*this)[object(key)]; }}} 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). It would be great if we can fix that compile error and someone could give me a review.",Bugs,new,To Be Determined,python USE GITHUB,Boost 1.57.0,Showstopper,,nvcc python compile,