diff --git a/Triangulation_2/include/CGAL/boost/graph/graph_traits_Constrained_triangulation_plus_2.h b/Triangulation_2/include/CGAL/boost/graph/graph_traits_Constrained_triangulation_plus_2.h index 593ecef3ed3..db8e1d3f03d 100644 --- a/Triangulation_2/include/CGAL/boost/graph/graph_traits_Constrained_triangulation_plus_2.h +++ b/Triangulation_2/include/CGAL/boost/graph/graph_traits_Constrained_triangulation_plus_2.h @@ -196,7 +196,7 @@ namespace CGAL { const CGAL::Constrained_triangulation_plus_2& tr; public: typedef boost::readable_property_map_tag category; - typedef typename typename Tr::Geom_traits::FT value_type; + typedef typename Tr::Geom_traits::FT value_type; typedef value_type reference; typedef typename CGAL::Constrained_triangulation_plus_2::Edge key_type; @@ -204,7 +204,7 @@ namespace CGAL { : tr(tr_) { } - typename typename Tr::Geom_traits::FT operator[](key_type e) const { + typename Tr::Geom_traits::FT operator[](key_type e) const { return approximate_sqrt(tr.segment(e).squared_length()); } }; diff --git a/Triangulation_2/include/CGAL/boost/graph/graph_traits_Triangulation_hierarchy_2.h b/Triangulation_2/include/CGAL/boost/graph/graph_traits_Triangulation_hierarchy_2.h index 704c29f9c27..471b0e03435 100644 --- a/Triangulation_2/include/CGAL/boost/graph/graph_traits_Triangulation_hierarchy_2.h +++ b/Triangulation_2/include/CGAL/boost/graph/graph_traits_Triangulation_hierarchy_2.h @@ -198,7 +198,7 @@ namespace CGAL { const CGAL::Triangulation_hierarchy_2& tr; public: typedef boost::readable_property_map_tag category; - typedef typename typename Tr::Geom_traits::FT value_type; + typedef typename Tr::Geom_traits::FT value_type; typedef value_type reference; typedef typename CGAL::Triangulation_hierarchy_2::Edge key_type; @@ -206,7 +206,7 @@ namespace CGAL { : tr(tr_) { } - typename typename Tr::Geom_traits::FT operator[](key_type e) const { + typename Tr::Geom_traits::FT operator[](key_type e) const { return approximate_sqrt(tr.segment(e).squared_length()); } };