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:
@@ -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.
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user