diff --git a/opm/simulators/utils/ParallelFileMerger.hpp b/opm/simulators/utils/ParallelFileMerger.hpp index 10eacf306..eb4528983 100644 --- a/opm/simulators/utils/ParallelFileMerger.hpp +++ b/opm/simulators/utils/ParallelFileMerger.hpp @@ -26,7 +26,7 @@ #include #include -#include +#include namespace Opm { @@ -70,14 +70,14 @@ public: void operator()(const fs::path& file) { - boost::smatch matches; + std::smatch matches; std::string filename = file.filename().native(); - if ( boost::regex_match(filename, matches, fileWarningRegex_) ) + if ( std::regex_match(filename, matches, fileWarningRegex_) ) { - std::string rank = boost::regex_replace(filename, fileWarningRegex_, "\\1"); + std::string rank = std::regex_replace(filename, fileWarningRegex_, "\\1"); - if( boost::regex_match(filename, logFileRegex_) ) + if( std::regex_match(filename, logFileRegex_) ) { if ( show_fallout_ ){ appendFile(*logStream_, file, rank); @@ -87,7 +87,7 @@ public: } else { - if (boost::regex_match(filename, debugFileRegex_) ) + if (std::regex_match(filename, debugFileRegex_) ) { if ( show_fallout_ ){ appendFile(*debugStream_, file, rank); @@ -135,11 +135,11 @@ private: } /// \brief Regex to capture *.DBG - boost::regex debugFileRegex_; + std::regex debugFileRegex_; /// \brief Regex to capture *.PRT - boost::regex logFileRegex_; + std::regex logFileRegex_; /// \brief Regex to capture CASENAME.[0-9]+.[A-Z]+ - boost::regex fileWarningRegex_; + std::regex fileWarningRegex_; /// \brief Stream to *.DBG file std::unique_ptr debugStream_; /// \brief Stream to *.PRT file