tmp/tmp04w2_a9k/{from.md → to.md}
RENAMED
|
@@ -17,11 +17,11 @@ multiple of `Period1::den` and `Period2::den`. — *end note*]
|
|
| 17 |
[*Note 2*: The `typedef` name `type` is a synonym for the `duration`
|
| 18 |
with the largest tick `period` possible where both `duration` arguments
|
| 19 |
will convert to it without requiring a division operation. The
|
| 20 |
representation of this type is intended to be able to hold any value
|
| 21 |
resulting from this conversion with no truncation error, although
|
| 22 |
-
floating-point durations
|
| 23 |
|
| 24 |
``` cpp
|
| 25 |
template<class Clock, class Duration1, class Duration2>
|
| 26 |
struct common_type<chrono::time_point<Clock, Duration1>, chrono::time_point<Clock, Duration2>> {
|
| 27 |
using type = chrono::time_point<Clock, common_type_t<Duration1, Duration2>>;
|
|
|
|
| 17 |
[*Note 2*: The `typedef` name `type` is a synonym for the `duration`
|
| 18 |
with the largest tick `period` possible where both `duration` arguments
|
| 19 |
will convert to it without requiring a division operation. The
|
| 20 |
representation of this type is intended to be able to hold any value
|
| 21 |
resulting from this conversion with no truncation error, although
|
| 22 |
+
floating-point durations can have round-off errors. — *end note*]
|
| 23 |
|
| 24 |
``` cpp
|
| 25 |
template<class Clock, class Duration1, class Duration2>
|
| 26 |
struct common_type<chrono::time_point<Clock, Duration1>, chrono::time_point<Clock, Duration2>> {
|
| 27 |
using type = chrono::time_point<Clock, common_type_t<Duration1, Duration2>>;
|