File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -24,22 +24,18 @@ _LIBCPP_BEGIN_NAMESPACE_STD
24
24
25
25
namespace chrono {
26
26
27
- template <class >
28
- struct is_clock : std::false_type {};
29
-
30
27
template <class _Tp >
31
- requires requires {
32
- typename _Tp::rep;
33
- typename _Tp::period;
34
- typename _Tp::duration;
35
- typename _Tp::time_point;
36
- _Tp::is_steady;
37
- _Tp::now ();
38
- }
39
- struct is_clock <_Tp> : std::true_type {};
28
+ _LIBCPP_NO_SPECIALIZATIONS inline constexpr bool is_clock_v = requires {
29
+ typename _Tp::rep;
30
+ typename _Tp::period;
31
+ typename _Tp::duration;
32
+ typename _Tp::time_point;
33
+ _Tp::is_steady;
34
+ _Tp::now ();
35
+ };
40
36
41
37
template <class _Tp >
42
- _LIBCPP_NO_SPECIALIZATIONS inline constexpr bool is_clock_v = is_clock <_Tp>::value ;
38
+ struct _LIBCPP_NO_SPECIALIZATIONS is_clock : bool_constant< is_clock_v<_Tp>> {} ;
43
39
44
40
} // namespace chrono
45
41
You can’t perform that action at this time.
0 commit comments