Update tests for default constructible:

* weekday_indexed
* year_month_weekday
This commit is contained in:
Howard Hinnant 2017-08-05 16:31:18 -04:00
parent e2a38e600c
commit 9c181a1440
2 changed files with 4 additions and 2 deletions

View File

@ -23,6 +23,7 @@
// class weekday_indexed
// {
// public:
// weekday_indexed() = default;
// constexpr weekday_indexed(const date::weekday& wd, unsigned index) noexcept;
//
// constexpr date::weekday weekday() const noexcept;
@ -42,7 +43,7 @@
#include <type_traits>
static_assert( std::is_trivially_destructible<date::weekday_indexed>{}, "");
static_assert(!std::is_default_constructible<date::weekday_indexed>{}, "");
static_assert( std::is_default_constructible<date::weekday_indexed>{}, "");
static_assert( std::is_trivially_copy_constructible<date::weekday_indexed>{}, "");
static_assert( std::is_trivially_copy_assignable<date::weekday_indexed>{}, "");
static_assert( std::is_trivially_move_constructible<date::weekday_indexed>{}, "");

View File

@ -23,6 +23,7 @@
// class year_month_weekday
// {
// public:
// year_month_weekday() = default;
// constexpr year_month_weekday(const date::year& y, const date::month& m,
// const date::weekday_indexed& wdi) noexcept;
// constexpr year_month_weekday(const sys_days& dp) noexcept;
@ -83,7 +84,7 @@
#include <type_traits>
static_assert( std::is_trivially_destructible<date::year_month_weekday>{}, "");
static_assert(!std::is_default_constructible<date::year_month_weekday>{}, "");
static_assert( std::is_default_constructible<date::year_month_weekday>{}, "");
static_assert( std::is_trivially_copy_constructible<date::year_month_weekday>{}, "");
static_assert( std::is_trivially_copy_assignable<date::year_month_weekday>{}, "");
static_assert( std::is_trivially_move_constructible<date::year_month_weekday>{}, "");