From eb080638fc8a731b49c86891d2db113867b6d2f4 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 23 Feb 2007 13:01:04 +0000 Subject: [PATCH] Fix an error with -D_GLIBCXX_DEBUG -D_GLIBCPP_CONCEPT_CHECKS The following (commented) line triggered the error: direct_func[rit->second] = rit; The new following line fixes the bug. Actually, it is even more efficient. direct_func.insert(std::make_pair(rit->second, rit)); --- Mesh_2/include/CGAL/Double_map.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Mesh_2/include/CGAL/Double_map.h b/Mesh_2/include/CGAL/Double_map.h index 03350054944..94b1e57c158 100644 --- a/Mesh_2/include/CGAL/Double_map.h +++ b/Mesh_2/include/CGAL/Double_map.h @@ -113,7 +113,12 @@ public : rit != reverse_func.end(); ++rit) { - direct_func[rit->second] = rit; + // Fix an error with -D_GLIBCXX_DEBUG -D_GLIBCPP_CONCEPT_CHECKS + // The following (commented) line triggered the error: + // direct_func[rit->second] = rit; + // The new following line fixes the bug. Actually, it is even more + // efficient. + direct_func.insert(std::make_pair(rit->second, rit)); } }