From a076239fc81f9236aa4b58e8f64f459c91412166 Mon Sep 17 00:00:00 2001 From: Joel de Guzman Date: Mon, 21 Nov 2005 04:54:23 +0000 Subject: [PATCH] std::string and std::complex as no-proxy types. [SVN r31717] --- include/boost/python/suite/indexing/indexing_suite.hpp | 8 +++++++- .../boost/python/suite/indexing/map_indexing_suite.hpp | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/boost/python/suite/indexing/indexing_suite.hpp b/include/boost/python/suite/indexing/indexing_suite.hpp index b7de0ee4..61e3593c 100644 --- a/include/boost/python/suite/indexing/indexing_suite.hpp +++ b/include/boost/python/suite/indexing/indexing_suite.hpp @@ -14,6 +14,7 @@ # include # include # include +# include namespace boost { namespace python { @@ -119,7 +120,12 @@ namespace boost { namespace python { typedef mpl::or_< mpl::bool_ - , mpl::not_ > > + , mpl::not_ > + , typename mpl::or_< + is_same + , is_same > + , is_same > + , is_same > >::type> no_proxy; typedef detail::container_element diff --git a/include/boost/python/suite/indexing/map_indexing_suite.hpp b/include/boost/python/suite/indexing/map_indexing_suite.hpp index 0f5f7f3d..9322cdcc 100644 --- a/include/boost/python/suite/indexing/map_indexing_suite.hpp +++ b/include/boost/python/suite/indexing/map_indexing_suite.hpp @@ -26,7 +26,7 @@ namespace boost { namespace python { } // The map_indexing_suite class is a predefined indexing_suite derived - // class for wrapping std::vector (and std::vector like) classes. It provides + // class for wrapping std::map (and std::map like) classes. It provides // all the policies required by the indexing_suite (see indexing_suite). // Example usage: //