Don't base reference detection on lvalue_property_map_tag

This commit is contained in:
Mael Rouxel-Labbé 2021-10-08 15:42:01 +02:00
parent 2331eb7cf4
commit 480c14564a
1 changed files with 9 additions and 12 deletions

View File

@ -232,19 +232,16 @@ public:
// Select type of iterator + construct class depending on whether
// point map is lvalue or not
typedef typename boost::mpl::if_
<boost::is_same
<boost::lvalue_property_map_tag,
typename boost::property_traits<PointPropertyMap>::category >,
typename Base::Cartesian_const_iterator_d,
No_lvalue_iterator>::type
typedef typename boost::mpl::if_<
boost::is_reference<typename boost::property_traits<PointPropertyMap>::reference>,
typename Base::Cartesian_const_iterator_d,
No_lvalue_iterator>::type
Cartesian_const_iterator_d;
typedef typename boost::mpl::if_
<boost::is_same
<boost::lvalue_property_map_tag,
typename boost::property_traits<PointPropertyMap>::category >,
Construct_cartesian_const_iterator_d_lvalue,
Construct_cartesian_const_iterator_d_no_lvalue>::type
typedef typename boost::mpl::if_<
boost::is_reference<typename boost::property_traits<PointPropertyMap>::reference>,
Construct_cartesian_const_iterator_d_lvalue,
Construct_cartesian_const_iterator_d_no_lvalue>::type
Construct_cartesian_const_iterator_d;
struct Construct_iso_box_d: public Base::Construct_iso_box_d{