Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | clang-tidy: Replace typedef with using | Regina Pfeifer | 2019-09-04 | 1 | -1/+1 |
| | | | | | | | | Automate the conversion with perl -i -0pe 's/typedef ([^;]*) ([^ ]+);/using $2 = $1;/g' then manually fix a few places. | ||||
* | CTest: add safe conversion from cmDuration to integer types | Wouter Klouwen | 2018-01-23 | 1 | -0/+16 |
| | | | | | | | | | | | | | 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. | ||||
* | CTest: introduce cmDuration | Wouter Klouwen | 2018-01-23 | 1 | -0/+8 |
This commit introduces cmDuration as a typedef for std::chrono::duration<double, std::ratio<1>>. It is less verbose and provides for a point to put future common functionality for durations. No functional change intended. |