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
@@ -57,7 +57,7 @@ main()
using tod = time_of_day<hours>;
static_assert(is_same<tod::precision, hours>{}, "");
static_assert(is_same<tod::precision::period, hours::period>{}, "");
static_assert( is_trivially_destructible<tod>{}, "");
static_assert( is_default_constructible<tod>{}, "");
@@ -68,7 +68,6 @@ main()
static_assert(is_nothrow_constructible<tod, hours>{}, "");
static_assert(!is_convertible<hours, tod>{}, "");
static_assert(is_nothrow_constructible<tod, hours, unsigned>{}, "");
static_assert(is_nothrow_constructible<tod::precision, tod>{}, "");
static_assert(!is_convertible<tod, tod::precision>{}, "");