From e17cd4b188733ca46bf8989c11c48eaea59098eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Sverre=20Lien=20Sell=C3=A6g?= Date: Sun, 23 May 2021 18:00:44 +0200 Subject: [PATCH] use common header for fs --- include/config.hpp | 4 +--- include/data.hpp | 4 +--- include/fs.hpp | 3 +++ 3 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 include/fs.hpp diff --git a/include/config.hpp b/include/config.hpp index 1f7c220..c9b7eee 100644 --- a/include/config.hpp +++ b/include/config.hpp @@ -1,9 +1,7 @@ #pragma once -#include +#include #include -namespace fs = std::experimental::filesystem; - class config : public json { static fs::path &get_config_path(); void create_config_directory(); diff --git a/include/data.hpp b/include/data.hpp index dae073a..fd924ab 100644 --- a/include/data.hpp +++ b/include/data.hpp @@ -1,9 +1,7 @@ #pragma once -#include +#include #include -namespace fs = std::experimental::filesystem; - class with_data_directory { void create_data_directory(); diff --git a/include/fs.hpp b/include/fs.hpp new file mode 100644 index 0000000..7f5bc38 --- /dev/null +++ b/include/fs.hpp @@ -0,0 +1,3 @@ +#pragma once +#include +namespace fs = std::experimental::filesystem;