diff --git a/include/boost/python/suite/indexing/container_traits.hpp b/include/boost/python/suite/indexing/container_traits.hpp index 2d304c43..7bcf0828 100755 --- a/include/boost/python/suite/indexing/container_traits.hpp +++ b/include/boost/python/suite/indexing/container_traits.hpp @@ -157,10 +157,13 @@ namespace boost { namespace python { namespace indexing { typedef typename boost::call_traits::param_type index_param; BOOST_STATIC_CONSTANT (IndexStyle, index_style = index_style_nonlinear); - BOOST_STATIC_CONSTANT (bool, has_find = true); - BOOST_STATIC_CONSTANT (bool, is_reorderable = false); - // MSVC seems to have a mutable std::set::reference, so we need - // to explicitly cancel is_reorderable here + BOOST_STATIC_CONSTANT (bool, has_find = true); + + BOOST_STATIC_CONSTANT (bool, has_mutable_ref = false); + BOOST_STATIC_CONSTANT (bool, is_reorderable = false); + // Some compilers seem to deduce has_mutable_ref as true from the + // set iterator traits. The previous two constants explicitly hide + // the bad results of that. }; /////////////////////////////////////////////////////////////////////////