Files
CMake/Source
Wouter Klouwen ff62b00522 CTest: add safe conversion from cmDuration to integer types
A problem area by recent refactoring of time to std::chrono has been the
unsafe conversion from duration<double> to std::chrono::seconds, which
is of an unspecified integer type.

This commit adds a template function that for a given type provides a
safe conversion, effectively clamping a duration<double> into what fits
safely in that type. A specialisation for int and unsigned int are
provided.

It changes the protential problem areas to use this safe function.
2018-01-23 10:05:12 -05:00
..
2018-01-04 06:52:01 +11:00
2018-01-04 06:52:01 +11:00
2017-12-18 18:26:55 +01:00
2018-01-23 00:01:18 -05:00
2017-09-19 11:44:21 -04:00
2017-08-24 23:39:47 +02:00
2017-08-24 23:39:47 +02:00
2018-01-04 06:52:01 +11:00
2017-08-24 23:39:47 +02:00
2017-08-24 23:39:47 +02:00
2018-01-23 10:04:38 -05:00
2017-08-22 23:05:27 +02:00
2018-01-04 06:52:01 +11:00
2018-01-04 06:52:01 +11:00
2017-08-30 11:07:05 -04:00
2018-01-04 06:52:01 +11:00
2017-11-03 10:25:05 -04:00
2017-08-24 23:39:47 +02:00
2017-08-24 23:39:47 +02:00
2017-08-24 23:39:47 +02:00
2017-08-24 23:39:47 +02:00
2017-08-24 23:39:47 +02:00
2017-08-27 09:58:46 +02:00
2017-08-24 23:39:47 +02:00
2017-11-03 10:25:05 -04:00
2018-01-04 06:52:01 +11:00
2017-08-24 23:39:47 +02:00
2017-08-24 23:39:47 +02:00
2017-08-24 23:39:47 +02:00
2017-08-24 23:39:47 +02:00
2017-08-24 23:39:47 +02:00
2017-11-03 10:25:05 -04:00
2017-08-24 23:39:47 +02:00
2017-11-03 10:25:05 -04:00
2017-08-24 23:39:47 +02:00
2017-08-27 09:58:46 +02:00
2018-01-04 06:52:01 +11:00
2017-11-07 14:15:20 -05:00