2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 18:12:43 +00:00

Force has_mutable_ref to false in set_traits, in case iterator_traits wrong

[SVN r20429]
This commit is contained in:
Raoul Gough
2003-10-20 16:22:54 +00:00
parent 7482040832
commit b81435f4aa

View File

@@ -157,10 +157,13 @@ namespace boost { namespace python { namespace indexing {
typedef typename boost::call_traits<index_type>::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.
};
/////////////////////////////////////////////////////////////////////////