From 3b381c8c8bd68b73c4c8ed3c9f87ed9dc75600b2 Mon Sep 17 00:00:00 2001 From: Ilya Andreev Date: Wed, 13 Mar 2024 18:28:32 +0300 Subject: [PATCH] Move tmp::fs definition to a separate file (#24) - Move tmp::fs definition to a separate file - Remove include --- include/tmp/directory | 2 +- include/tmp/file | 2 +- include/tmp/fs | 9 +++++++++ include/tmp/path | 5 ++--- src/tmp.cpp | 3 +-- 5 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 include/tmp/fs diff --git a/include/tmp/directory b/include/tmp/directory index cbc8e20..bf4c68a 100644 --- a/include/tmp/directory +++ b/include/tmp/directory @@ -1,8 +1,8 @@ #pragma once +#include #include -#include #include namespace tmp { diff --git a/include/tmp/file b/include/tmp/file index 77878c5..9c32996 100644 --- a/include/tmp/file +++ b/include/tmp/file @@ -1,8 +1,8 @@ #pragma once +#include #include -#include #include #include #include diff --git a/include/tmp/fs b/include/tmp/fs new file mode 100644 index 0000000..e43d768 --- /dev/null +++ b/include/tmp/fs @@ -0,0 +1,9 @@ +#pragma once + +#include + +namespace tmp { + +/// The filesystem library to use +namespace fs = std::filesystem; +} // namespace tmp diff --git a/include/tmp/path b/include/tmp/path index 0d4028a..fa8557f 100644 --- a/include/tmp/path +++ b/include/tmp/path @@ -1,13 +1,12 @@ #pragma once +#include + #include #include namespace tmp { -/// The filesystem library to use -namespace fs = std::filesystem; - /// tmp::path is a smart handle that owns and manages a temporary path and /// deletes it recursively when this handle goes out of scope /// diff --git a/src/tmp.cpp b/src/tmp.cpp index 59e81e7..6fc14f5 100644 --- a/src/tmp.cpp +++ b/src/tmp.cpp @@ -1,9 +1,8 @@ +#include #include - #include #include -#include #include #include #include