From: Wolfgang Bangerth Date: Tue, 21 Jan 2020 18:12:56 +0000 (-0700) Subject: Use std::to_string() instead of boost lexical_cast. X-Git-Tag: v9.2.0-rc1~614^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84136d89bc12021df9ba96486c047209dd5098a9;p=dealii.git Use std::to_string() instead of boost lexical_cast. --- diff --git a/source/base/utilities.cc b/source/base/utilities.cc index af0f9120c6..263993fba7 100644 --- a/source/base/utilities.cc +++ b/source/base/utilities.cc @@ -29,7 +29,6 @@ #include #include -#include #include #include @@ -45,6 +44,7 @@ #include #include #include +#include #if defined(DEAL_II_HAVE_UNISTD_H) && defined(DEAL_II_HAVE_GETHOSTNAME) # include @@ -437,7 +437,7 @@ namespace Utilities std::string to_string(const number value, const unsigned int digits) { - std::string lc_string = boost::lexical_cast(value); + std::string lc_string = std::to_string(value); if (digits == numbers::invalid_unsigned_int) return lc_string;