From: David Wells Date: Thu, 8 Dec 2022 15:09:03 +0000 (-0500) Subject: step-70: remove a dependency on boost. X-Git-Tag: v9.5.0-rc1~748^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14546%2Fhead;p=dealii.git step-70: remove a dependency on boost. --- diff --git a/examples/step-70/step-70.cc b/examples/step-70/step-70.cc index 2ce4d97488..879e5c1641 100644 --- a/examples/step-70/step-70.cc +++ b/examples/step-70/step-70.cc @@ -143,8 +143,6 @@ namespace LA # include #endif -#include - #include #include #include @@ -837,8 +835,12 @@ namespace Step70 const auto &manifold_id = pair.first; const auto &cad_file_name = pair.second; - const auto extension = boost::algorithm::to_lower_copy( - cad_file_name.substr(cad_file_name.find_last_of('.') + 1)); + std::string extension = + cad_file_name.substr(cad_file_name.find_last_of('.') + 1); + std::transform(extension.begin(), + extension.end(), + extension.begin(), + [](const char c) -> char { return std::tolower(c); }); TopoDS_Shape shape; if (extension == "iges" || extension == "igs")