diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-16 17:44:28 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-16 17:44:28 +0300 |
commit | cf9d0332f6b4dcd7dc388133ffd8fd6edd07e1c1 (patch) | |
tree | 109d6ec69c93920d2db08f7ec072ba8de270a032 /libbutl/path.cxx | |
parent | ed3f024f40771c90e0eb7ef5a51e7e01ab0247d4 (diff) |
Add to_string(timestamp)
Diffstat (limited to 'libbutl/path.cxx')
-rw-r--r-- | libbutl/path.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libbutl/path.cxx b/libbutl/path.cxx index 61088bf..be8bd61 100644 --- a/libbutl/path.cxx +++ b/libbutl/path.cxx @@ -174,6 +174,10 @@ namespace butl LIBBUTL_EXPORT path_traits<char>::string_type path_traits<char>:: temp_name (string_type const& prefix) { + // Otherwise compiler get confused with butl::to_string(timestamp). + // + using std::to_string; + return prefix + "-" + to_string (process::current_id ()) + "-" + to_string (temp_name_count++); |