aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-01-16 09:24:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-01-16 09:24:49 +0200
commit6734ffe0dc7fbdca5bbbf57f80aa44e1fafb6922 (patch)
tree5087ec861d53558bfad313dde947ed458e75b4a9
parent46b32368147e7975bf98826c30eed48e22ba07b4 (diff)
Fix path::temp_path() to return corresponding path type
-rw-r--r--libbutl/path.mxx4
1 files changed, 3 insertions, 1 deletions
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: