use std::filesystem directly

This commit is contained in:
Arne Morten Kvarving
2021-11-01 12:31:40 +01:00
parent 1a80378b0a
commit 06bd25575f
9 changed files with 29 additions and 24 deletions

View File

@@ -69,6 +69,7 @@
#include <cassert>
#include <cstdlib>
#include <filesystem>
#include <iostream>
#include <memory>
#include <stdexcept>
@@ -496,9 +497,9 @@ namespace Opm
return true;
}
filesystem::path simulationCaseName_(const std::string& casename)
std::filesystem::path simulationCaseName_(const std::string& casename)
{
namespace fs = ::Opm::filesystem;
namespace fs = ::std::filesystem;
auto exists = [](const fs::path& f)
{