From 52d0841b803596f0a06ca7cb7fac33cef75b9fec Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 11 Jun 2003 21:51:26 +0000 Subject: [PATCH] Added workaround for SunPro CC which has switched off member templates in the RW STL --- Packages/Polygon/include/CGAL/Polygon_2.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Packages/Polygon/include/CGAL/Polygon_2.h b/Packages/Polygon/include/CGAL/Polygon_2.h index 52960af4fe3..a168503c01f 100644 --- a/Packages/Polygon/include/CGAL/Polygon_2.h +++ b/Packages/Polygon/include/CGAL/Polygon_2.h @@ -240,7 +240,11 @@ class Polygon_2 { template Polygon_2(InputIterator first, InputIterator last, Traits p_traits = Traits()) - : d_container(first,last), traits(p_traits), m_flags(CF_EMPTY) {} + : d_container(), traits(p_traits), m_flags(CF_EMPTY) + { + // The Sun STL switches off member templates for binary backward compatibility + std::copy(first, last, std::back_inserter(d_container)); + } //-------------------------------------------------------- // Operations