From bb3887660e2f1a774ce925ced0b952affc9b73b4 Mon Sep 17 00:00:00 2001 From: Raoul Gough Date: Mon, 20 Oct 2003 10:58:23 +0000 Subject: [PATCH] Add bool paramater to maybe_add_setitem template for const-container support [SVN r20419] --- include/boost/python/suite/indexing/visitor.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/python/suite/indexing/visitor.hpp b/include/boost/python/suite/indexing/visitor.hpp index 2487f713..1bcb49da 100755 --- a/include/boost/python/suite/indexing/visitor.hpp +++ b/include/boost/python/suite/indexing/visitor.hpp @@ -116,7 +116,7 @@ namespace boost { namespace python { namespace indexing { // __setitem__ dummy ////////////////////////////////////////////////////////////////////////// - template + template struct maybe_add_setitem { template static void apply (PythonClass &, Algorithms const &, Policy const &) { } @@ -127,7 +127,7 @@ namespace boost { namespace python { namespace indexing { ////////////////////////////////////////////////////////////////////////// template<> - struct maybe_add_setitem { + struct maybe_add_setitem { template static void apply (PythonClass &pyClass , Algorithms const & @@ -142,7 +142,7 @@ namespace boost { namespace python { namespace indexing { ////////////////////////////////////////////////////////////////////////// template<> - struct maybe_add_setitem { + struct maybe_add_setitem { template static void apply (PythonClass &pyClass , Algorithms const & @@ -158,7 +158,7 @@ namespace boost { namespace python { namespace indexing { // __delitem__ dummy ////////////////////////////////////////////////////////////////////////// - template + template struct maybe_add_delitem { template static void apply (PythonClass &, Algorithms const &, Policy const &) { } @@ -478,7 +478,7 @@ namespace boost { namespace python { namespace indexing { maybe_add_getitem ::apply (pyClass, algorithms(), m_policy); - maybe_add_setitem + maybe_add_setitem ::apply (pyClass, algorithms(), m_policy); maybe_add_delitem