From 03ff945e39d1ad6c6b2009eefc9154141d858045 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Wed, 14 Jan 2015 16:35:52 +0100 Subject: [PATCH] Fix incomplete type in "contains" - experimental, module build works but I have no idea if the functionality is still the same - https://svn.boost.org/trac/boost/ticket/10933 --- include/boost/python/object_core.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/python/object_core.hpp b/include/boost/python/object_core.hpp index 9c9dc10bf..2a404596c 100644 --- a/include/boost/python/object_core.hpp +++ b/include/boost/python/object_core.hpp @@ -496,7 +496,7 @@ template template object api::object_operators::contains(T const& key) const { - return this->attr("__contains__")(object(key)); + return (*this)[object(key)]; }