From 9dfb45148670f712f6d3cf7f5000a4b4e393d83d Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 25 Apr 2016 17:36:19 +0300 Subject: Fix timestamp from_string() compilation error appeared when compiled with clang++ and libc++ --- butl/timestamp.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'butl') diff --git a/butl/timestamp.cxx b/butl/timestamp.cxx index 0da9f4c..41dc5ba 100644 --- a/butl/timestamp.cxx +++ b/butl/timestamp.cxx @@ -537,6 +537,7 @@ namespace butl if (time == -1) throw system_error (errno, system_category ()); - return timestamp::clock::from_time_t (time) + t.second; + return timestamp::clock::from_time_t (time) + + chrono::duration_cast (t.second); } } -- cgit v1.1