From 3fe2e280aa74fe03cb22f0d82f56cf8efa8809ce Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 20 Dec 2017 15:03:21 +0000 Subject: [PATCH] Use sstream instead of lexical_cast --- Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h index 184aaa4f82d..f112c8093fa 100644 --- a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h +++ b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -41,7 +42,6 @@ #include #include #include -#include #include #include #include @@ -1816,10 +1816,11 @@ private: //--------------------------------------------------- property handling template std::pair, bool> - add_property_map(const std::string& name=std::string(), const T t=T()) { + add_property_map(std::string name=std::string(), const T t=T()) { if(name.empty()){ - std::string name("anonymous-property-"); - name += boost::lexical_cast(anonymous_property_++); + std::ostringstream oss; + oss << "anonymous-property-" << anonymous_property_++; + name = std::string(oss.str()); } return Property_selector(this)().template add(name, t); }