diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2015-05-05 15:14:20 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2015-05-05 15:14:20 +0200 |
commit | a800e61ddd37efc6adf349962c586c0b783ac62e (patch) | |
tree | 60402b418614f47f861d9e732f2eb14584538e11 | |
parent | 7dd16e122c2ffcfb26071280b8e4ce9511a07edf (diff) | |
download | ATCD-a800e61ddd37efc6adf349962c586c0b783ac62e.tar.gz |
Added truncate_cast because suseconds_t is 32bit on Windows x86
* ACE/ace/Time_Value.h:
-rw-r--r-- | ACE/ace/Time_Value.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ACE/ace/Time_Value.h b/ACE/ace/Time_Value.h index 747d1f85c7d..c17023f76aa 100644 --- a/ACE/ace/Time_Value.h +++ b/ACE/ace/Time_Value.h @@ -22,7 +22,8 @@ # include "ace/os_include/os_time.h" #if defined (ACE_HAS_CPP11) -#include <chrono> +# include <chrono> +# include "ace/Truncate.h" #endif /* ACE_HAS_CPP11 */ // Define some helpful constants. @@ -128,7 +129,7 @@ public: std::chrono::microseconds const usec { std::chrono::duration_cast<std::chrono::microseconds>( duration % std::chrono::seconds (1))}; - this->set (s.count (), usec.count ()); + this->set (s.count (), ACE_Utils::truncate_cast<suseconds_t>(usec.count ())); } #endif /* ACE_HAS_CPP11 */ |