diff --git a/Homogeneous_kernel/include/CGAL/Homogeneous/DirectionH2.h b/Homogeneous_kernel/include/CGAL/Homogeneous/DirectionH2.h index 777311bf0b9..a5252bf8435 100644 --- a/Homogeneous_kernel/include/CGAL/Homogeneous/DirectionH2.h +++ b/Homogeneous_kernel/include/CGAL/Homogeneous/DirectionH2.h @@ -25,6 +25,7 @@ #define CGAL_HOMOGENEOUS_DIRECTION_2_H #include +#include namespace CGAL { @@ -74,12 +75,12 @@ public: Vector_2 to_vector() const; - const RT & x() const { return get(base)[0]; } - const RT & y() const { return get(base)[1]; } + const RT & x() const { return CGAL::get(base)[0]; } + const RT & y() const { return CGAL::get(base)[1]; } const RT & delta(int i) const; - const RT & dx() const { return get(base)[0]; } - const RT & dy() const { return get(base)[1]; } + const RT & dx() const { return CGAL::get(base)[0]; } + const RT & dy() const { return CGAL::get(base)[1]; } }; diff --git a/Homogeneous_kernel/include/CGAL/Homogeneous/VectorH2.h b/Homogeneous_kernel/include/CGAL/Homogeneous/VectorH2.h index 44946da8bc7..34acc0a5143 100644 --- a/Homogeneous_kernel/include/CGAL/Homogeneous/VectorH2.h +++ b/Homogeneous_kernel/include/CGAL/Homogeneous/VectorH2.h @@ -28,6 +28,7 @@ #include #include #include +#include namespace CGAL { @@ -91,9 +92,9 @@ public: bool operator==( const Null_vector&) const; bool operator!=( const Null_vector& v) const; - const RT & hx() const { return get(base)[0]; }; - const RT & hy() const { return get(base)[1]; }; - const RT & hw() const { return get(base)[2]; }; + const RT & hx() const { return CGAL::get(base)[0]; }; + const RT & hy() const { return CGAL::get(base)[1]; }; + const RT & hw() const { return CGAL::get(base)[2]; }; FT x() const { return FT(hx()) / FT(hw()); }; FT y() const { return FT(hy()) / FT(hw()); }; @@ -104,13 +105,13 @@ public: Cartesian_const_iterator cartesian_begin() const { - return make_cartesian_const_iterator_begin(get(base).begin(), - boost::prior(get(base).end())); + return make_cartesian_const_iterator_begin(CGAL::get(base).begin(), + boost::prior(CGAL::get(base).end())); } Cartesian_const_iterator cartesian_end() const { - return make_cartesian_const_iterator_end(boost::prior(get(base).end())); + return make_cartesian_const_iterator_end(boost::prior(CGAL::get(base).end())); } int dimension() const; @@ -177,7 +178,7 @@ const typename VectorH2::RT & VectorH2::homogeneous(int i) const { CGAL_kernel_precondition( (i>=0) && (i<=2) ); - return get(base)[i]; + return CGAL::get(base)[i]; } template < class R >