Clean up time_of_day tests.

* Don't assume int64_t is the rep in the predefined chrono durations.
This commit is contained in:
Howard Hinnant
2017-03-14 11:05:33 -04:00
parent 9e1120c676
commit d110f07f59
5 changed files with 5 additions and 12 deletions
+1 -2
View File
@@ -60,7 +60,7 @@ main()
using tod = time_of_day<seconds>;
static_assert(is_same<tod::precision, seconds>{}, "");
static_assert(is_same<tod::precision::period, seconds::period>{}, "");
static_assert( is_trivially_destructible<tod>{}, "");
static_assert( is_default_constructible<tod>{}, "");
@@ -71,7 +71,6 @@ main()
static_assert(is_nothrow_constructible<tod, seconds>{}, "");
static_assert(!is_convertible<seconds, tod>{}, "");
static_assert(is_nothrow_constructible<tod, hours, minutes, seconds, unsigned>{}, "");
static_assert(is_nothrow_constructible<tod::precision, tod>{}, "");
static_assert(!is_convertible<tod, tod::precision>{}, "");