diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-01-16 09:24:49 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-01-16 09:24:49 +0200 |
commit | 6734ffe0dc7fbdca5bbbf57f80aa44e1fafb6922 (patch) | |
tree | 5087ec861d53558bfad313dde947ed458e75b4a9 | |
parent | 46b32368147e7975bf98826c30eed48e22ba07b4 (diff) |
Fix path::temp_path() to return corresponding path type
-rw-r--r-- | libbutl/path.mxx | 4 |
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: |