From 4ed188ea706d7b71bf2150b72b4a6826e22399d1 Mon Sep 17 00:00:00 2001 From: Stepland <16676308+Stepland@users.noreply.github.com> Date: Mon, 2 Mar 2020 13:45:25 +0100 Subject: [PATCH] OMFG kill me --- .../ExtraCerealTypes/GHCFilesystemPath.hpp | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/Toolkit/ExtraCerealTypes/GHCFilesystemPath.hpp b/src/Toolkit/ExtraCerealTypes/GHCFilesystemPath.hpp index 271a8f9..3fe89ea 100644 --- a/src/Toolkit/ExtraCerealTypes/GHCFilesystemPath.hpp +++ b/src/Toolkit/ExtraCerealTypes/GHCFilesystemPath.hpp @@ -2,16 +2,19 @@ #include -#include +#include #include +namespace ghc { + namespace filesystem { + template + std::string save_minimal(const Archive &, const path& p) { + return p.string(); + } -template -std::string save_minimal(const Archive &, ghc::filesystem::path& p) { - return p.string(); -} - -template -void load_minimal(const Archive &, ghc::filesystem::path& p, const std::string& value) { - p = ghc::filesystem::path{value}; + template + void load_minimal(const Archive &, path& p, const std::string& value) { + p = path{value}; + } + } } \ No newline at end of file