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); }