Skip to content

Commit

Permalink
Change boost::fs to std::fs (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
kursatyurt authored Nov 21, 2022
1 parent bb6677e commit ac73b2b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ find_package (Threads REQUIRED)

find_package(precice REQUIRED CONFIG)

find_package(Boost 1.71.0 REQUIRED COMPONENTS log log_setup system program_options filesystem unit_test_framework)
find_package(Boost 1.71.0 REQUIRED COMPONENTS log log_setup system program_options unit_test_framework)

option(ASTE_USE_VTK_COMPONENTS "Find VTK with components" OFF)
if(ASTE_USE_VTK_COMPONENTS)
Expand Down
3 changes: 1 addition & 2 deletions src/mesh.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <algorithm>
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/operations.hpp>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <limits>
Expand Down
5 changes: 2 additions & 3 deletions src/mesh.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#pragma once

#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/operations.hpp>
#include <filesystem>

#include <mpi.h>

Expand Down Expand Up @@ -39,7 +38,7 @@

namespace aste {

namespace fs = boost::filesystem;
namespace fs = std::filesystem;
class BaseName;
struct Mesh;
class MeshName;
Expand Down
4 changes: 2 additions & 2 deletions src/utilities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <boost/container/flat_map.hpp>
#include <boost/container/flat_set.hpp>
#include <boost/filesystem.hpp>
#include <filesystem>

#include <algorithm>
#include <cassert>
Expand All @@ -22,7 +22,7 @@

#include "precice/SolverInterface.hpp"

namespace fs = boost::filesystem;
namespace fs = std::filesystem;

using VertexID = int;
using EdgeID = int;
Expand Down
5 changes: 2 additions & 3 deletions tests/write_test.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#include <boost/filesystem.hpp>
#include <boost/filesystem/operations.hpp>
#include <cstdlib>
#include <filesystem>

#include "testing.hpp"

namespace fs = boost::filesystem;
namespace fs = std::filesystem;

void writetest(const WriteCase &current_case)
{
Expand Down

0 comments on commit ac73b2b

Please sign in to comment.