mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 00:14:07 +08:00
Update tests for default constructible:
* weekday_indexed * year_month_weekday
This commit is contained in:
parent
e2a38e600c
commit
9c181a1440
@ -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>{}, "");
|
||||
|
@ -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>{}, "");
|
||||
|
Loading…
x
Reference in New Issue
Block a user