From Jason Turner

[time.traits.specializations]

Diff to HTML by rtfpessoa

tmp/tmp0zkov4_y/{from.md → to.md} RENAMED
@@ -1,11 +1,11 @@
1
  #### Specializations of `common_type` <a id="time.traits.specializations">[[time.traits.specializations]]</a>
2
 
3
  ``` cpp
4
  template <class Rep1, class Period1, class Rep2, class Period2>
5
  struct common_type<chrono::duration<Rep1, Period1>, chrono::duration<Rep2, Period2>> {
6
- typedef chrono::duration<typename common_type<Rep1, Rep2>::type, see below> type;
7
  };
8
  ```
9
 
10
  The `period` of the `duration` indicated by this specialization of
11
  `common_type` shall be the greatest common divisor of `Period1` and
@@ -21,11 +21,11 @@ this conversion with no truncation error, although floating-point
21
  durations may have round-off errors.
22
 
23
  ``` cpp
24
  template <class Clock, class Duration1, class Duration2>
25
  struct common_type<chrono::time_point<Clock, Duration1>, chrono::time_point<Clock, Duration2>> {
26
- typedef chrono::time_point<Clock, typename common_type<Duration1, Duration2>::type> type;
27
  };
28
  ```
29
 
30
  The common type of two `time_point` types is a `time_point` with the
31
  same clock as the two types and the common type of their two
 
1
  #### Specializations of `common_type` <a id="time.traits.specializations">[[time.traits.specializations]]</a>
2
 
3
  ``` cpp
4
  template <class Rep1, class Period1, class Rep2, class Period2>
5
  struct common_type<chrono::duration<Rep1, Period1>, chrono::duration<Rep2, Period2>> {
6
+ typedef chrono::duration<common_type_t<Rep1, Rep2>, see below> type;
7
  };
8
  ```
9
 
10
  The `period` of the `duration` indicated by this specialization of
11
  `common_type` shall be the greatest common divisor of `Period1` and
 
21
  durations may have round-off errors.
22
 
23
  ``` cpp
24
  template <class Clock, class Duration1, class Duration2>
25
  struct common_type<chrono::time_point<Clock, Duration1>, chrono::time_point<Clock, Duration2>> {
26
+ typedef chrono::time_point<Clock, common_type_t<Duration1, Duration2>> type;
27
  };
28
  ```
29
 
30
  The common type of two `time_point` types is a `time_point` with the
31
  same clock as the two types and the common type of their two