diff --git a/Spatial_searching/include/CGAL/Search_traits_adapter.h b/Spatial_searching/include/CGAL/Search_traits_adapter.h index d3c6b49fd60..0d3d30f5de0 100644 --- a/Spatial_searching/include/CGAL/Search_traits_adapter.h +++ b/Spatial_searching/include/CGAL/Search_traits_adapter.h @@ -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_ - ::category >, - typename Base::Cartesian_const_iterator_d, - No_lvalue_iterator>::type + typedef typename boost::mpl::if_< + boost::is_reference::reference>, + typename Base::Cartesian_const_iterator_d, + No_lvalue_iterator>::type Cartesian_const_iterator_d; - typedef typename boost::mpl::if_ - ::category >, - Construct_cartesian_const_iterator_d_lvalue, - Construct_cartesian_const_iterator_d_no_lvalue>::type + + typedef typename boost::mpl::if_< + boost::is_reference::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{