From b2a5970f64c9ae3fa125224ac2a4ea97b52d59b4 Mon Sep 17 00:00:00 2001 From: Moritz Hoffmann Date: Fri, 27 Mar 2020 16:07:01 +0100 Subject: [PATCH] ADD string cast operator --- filesystem/path.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/filesystem/path.h b/filesystem/path.h index 9d1ac89..f816c34 100644 --- a/filesystem/path.h +++ b/filesystem/path.h @@ -216,6 +216,10 @@ class path { return oss.str(); } + inline operator std::string(){ + return this->str(); + } + void set(const std::string &str, path_type type = native_path) { m_type = type; if (type == windows_path) {