From c63819dba968badcf0483789fa4eaa5b52337375 Mon Sep 17 00:00:00 2001 From: Raoul Gough Date: Tue, 9 Sep 2003 20:57:22 +0000 Subject: [PATCH] Define two overloads for __getitem__ in index_style_linear specialization [SVN r1517] --- include/boost/python/suite/indexing/container_suite.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/boost/python/suite/indexing/container_suite.hpp b/include/boost/python/suite/indexing/container_suite.hpp index 640736c1..07b081da 100755 --- a/include/boost/python/suite/indexing/container_suite.hpp +++ b/include/boost/python/suite/indexing/container_suite.hpp @@ -60,6 +60,7 @@ namespace indexing { , Algorithms const & , Policy const &policy) { + pyClass.def ("__getitem__", &Algorithms::get, policy); pyClass.def ("__getitem__" , slice_handler::make_getitem (policy)); }