diff --git a/include/boost/python/suite/indexing/container_traits.hpp b/include/boost/python/suite/indexing/container_traits.hpp index bfb06081..8cba8c33 100755 --- a/include/boost/python/suite/indexing/container_traits.hpp +++ b/include/boost/python/suite/indexing/container_traits.hpp @@ -160,7 +160,7 @@ namespace boost { namespace python { namespace indexing { typedef typename boost::call_traits::param_type key_param; typedef typename boost::call_traits::param_type index_param; - BOOST_STATIC_CONSTANT (IndexStyle, index_style = index_style_nonlinear); + BOOST_STATIC_CONSTANT (index_style_t, index_style = index_style_nonlinear); BOOST_STATIC_CONSTANT (bool, has_find = true); BOOST_STATIC_CONSTANT (bool, has_mutable_ref = false); @@ -186,7 +186,7 @@ namespace boost { namespace python { namespace indexing { typedef typename boost::call_traits::param_type key_param; typedef typename boost::call_traits::param_type index_param; - BOOST_STATIC_CONSTANT (IndexStyle, index_style = index_style_nonlinear); + BOOST_STATIC_CONSTANT (index_style_t, index_style = index_style_nonlinear); BOOST_STATIC_CONSTANT (bool, has_find = true); BOOST_STATIC_CONSTANT (bool, is_reorderable = false); // std::map::reference (reference to the mapped type) is mutable, diff --git a/include/boost/python/suite/indexing/iterator_traits.hpp b/include/boost/python/suite/indexing/iterator_traits.hpp index 00b003c7..b5f437ea 100755 --- a/include/boost/python/suite/indexing/iterator_traits.hpp +++ b/include/boost/python/suite/indexing/iterator_traits.hpp @@ -31,7 +31,7 @@ namespace boost { namespace python { namespace indexing { #if !BOOST_MSVC - enum IndexStyle { + enum index_style_t { index_style_none // No random access (iteration only) , index_style_nonlinear // Random access by key (no slicing) , index_style_linear // Random access by integer index (allows slicing) @@ -42,10 +42,10 @@ namespace boost { namespace python { namespace indexing { // like (traits::index_style == index_style_linear) is a // compile-time constant. However, the problem doesn't exist for // int. - typedef int IndexStyle; - IndexStyle const index_style_none = 0; - IndexStyle const index_style_nonlinear = 1; - IndexStyle const index_style_linear = 2; + typedef int index_style_t; + index_style_t const index_style_none = 0; + index_style_t const index_style_nonlinear = 1; + index_style_t const index_style_linear = 2; #endif ////////////////////////////////////////////////////////////////////////// @@ -69,7 +69,7 @@ namespace boost { namespace python { namespace indexing { BOOST_STATIC_CONSTANT ( bool, has_mutable_ref = is_mutable_ref::value); - BOOST_STATIC_CONSTANT (IndexStyle, index_style = index_style_none); + BOOST_STATIC_CONSTANT (index_style_t, index_style = index_style_none); }; template @@ -91,7 +91,7 @@ namespace boost { namespace python { namespace indexing { struct random_access_iterator_traits : public bidirectional_iterator_traits { - BOOST_STATIC_CONSTANT (IndexStyle, index_style = index_style_linear); + BOOST_STATIC_CONSTANT (index_style_t, index_style = index_style_linear); }; namespace iterator_detail { diff --git a/include/boost/python/suite/indexing/visitor.hpp b/include/boost/python/suite/indexing/visitor.hpp index 79a161f6..4473ead9 100755 --- a/include/boost/python/suite/indexing/visitor.hpp +++ b/include/boost/python/suite/indexing/visitor.hpp @@ -76,7 +76,7 @@ namespace boost { namespace python { namespace indexing { // __getitem__ dummy ////////////////////////////////////////////////////////////////////////// - template + template struct maybe_add_getitem { template static void apply (PythonClass &, Algorithms const &, Policy const &) { } @@ -121,7 +121,7 @@ namespace boost { namespace python { namespace indexing { // __setitem__ dummy ////////////////////////////////////////////////////////////////////////// - template + template struct maybe_add_setitem { template static void apply (PythonClass &, Algorithms const &, Policy const &) { } @@ -166,7 +166,7 @@ namespace boost { namespace python { namespace indexing { // __delitem__ dummy ////////////////////////////////////////////////////////////////////////// - template + template struct maybe_add_delitem { template static void apply (PythonClass &, Algorithms const &, Policy const &) { } @@ -402,7 +402,7 @@ namespace boost { namespace python { namespace indexing { // count dummy ////////////////////////////////////////////////////////////////////////// - template + template struct maybe_add_count { template static void apply (PythonClass &, Algorithms const &, Policy const &) { }