Use max precision for stringstream

This commit is contained in:
Simon Giraudot 2016-10-28 14:47:44 +02:00
parent 9275058449
commit 0fd1d9db36
1 changed files with 1 additions and 0 deletions

View File

@ -234,6 +234,7 @@ namespace internal
virtual std::string get_string(const typename CGAL::Point_set_3<Point,Vector>::Index& index) virtual std::string get_string(const typename CGAL::Point_set_3<Point,Vector>::Index& index)
{ {
std::ostringstream oss; std::ostringstream oss;
oss.precision (std::numeric_limits<double>::digits10 + 2);
oss << get(m_pmap, index); oss << get(m_pmap, index);
return oss.str(); return oss.str();
} }