mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-04 13:14:26 +02:00
Update tests for default constructible:
* weekday_indexed * year_month_weekday
This commit is contained in:
@@ -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>{}, "");
|
||||
|
Reference in New Issue
Block a user