From 6734ffe0dc7fbdca5bbbf57f80aa44e1fafb6922 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 16 Jan 2018 09:24:49 +0200 Subject: Fix path::temp_path() to return corresponding path type --- libbutl/path.mxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libbutl/path.mxx') diff --git a/libbutl/path.mxx b/libbutl/path.mxx index fecbaf6..520453a 100644 --- a/libbutl/path.mxx +++ b/libbutl/path.mxx @@ -681,7 +681,9 @@ LIBBUTL_MODEXPORT namespace butl static basic_path temp_path (const string_type& prefix) { - return temp_directory () / traits::temp_name (prefix); + basic_path r (temp_directory ()); + r /= traits::temp_name (prefix); + return r; } public: -- cgit v1.1