mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 00:14:07 +08:00
Update tests for default constructible calendar types
This commit is contained in:
parent
641cd739c3
commit
3fb4d32922
@ -60,7 +60,7 @@
|
||||
#include <type_traits>
|
||||
|
||||
static_assert( std::is_trivially_destructible<date::day>{}, "");
|
||||
static_assert(!std::is_default_constructible<date::day>{}, "");
|
||||
static_assert( std::is_default_constructible<date::day>{}, "");
|
||||
static_assert( std::is_trivially_copy_constructible<date::day>{}, "");
|
||||
static_assert( std::is_trivially_copy_assignable<date::day>{}, "");
|
||||
static_assert( std::is_trivially_move_constructible<date::day>{}, "");
|
||||
|
@ -72,7 +72,7 @@
|
||||
#include <type_traits>
|
||||
|
||||
static_assert( std::is_trivially_destructible<date::month>{}, "");
|
||||
static_assert(!std::is_default_constructible<date::month>{}, "");
|
||||
static_assert( std::is_default_constructible<date::month>{}, "");
|
||||
static_assert( std::is_trivially_copy_constructible<date::month>{}, "");
|
||||
static_assert( std::is_trivially_copy_assignable<date::month>{}, "");
|
||||
static_assert( std::is_trivially_move_constructible<date::month>{}, "");
|
||||
|
@ -47,7 +47,7 @@
|
||||
#include <type_traits>
|
||||
|
||||
static_assert( std::is_trivially_destructible<date::month_day>{}, "");
|
||||
static_assert(!std::is_default_constructible<date::month_day>{}, "");
|
||||
static_assert( std::is_default_constructible<date::month_day>{}, "");
|
||||
static_assert( std::is_trivially_copy_constructible<date::month_day>{}, "");
|
||||
static_assert( std::is_trivially_copy_assignable<date::month_day>{}, "");
|
||||
static_assert( std::is_trivially_move_constructible<date::month_day>{}, "");
|
||||
|
@ -69,7 +69,7 @@
|
||||
#include <type_traits>
|
||||
|
||||
static_assert( std::is_trivially_destructible<date::weekday>{}, "");
|
||||
static_assert(!std::is_default_constructible<date::weekday>{}, "");
|
||||
static_assert( std::is_default_constructible<date::weekday>{}, "");
|
||||
static_assert( std::is_trivially_copy_constructible<date::weekday>{}, "");
|
||||
static_assert( std::is_trivially_copy_assignable<date::weekday>{}, "");
|
||||
static_assert( std::is_trivially_move_constructible<date::weekday>{}, "");
|
||||
|
@ -64,7 +64,7 @@
|
||||
#include <type_traits>
|
||||
|
||||
static_assert( std::is_trivially_destructible<date::year>{}, "");
|
||||
static_assert(!std::is_default_constructible<date::year>{}, "");
|
||||
static_assert( std::is_default_constructible<date::year>{}, "");
|
||||
static_assert( std::is_trivially_copy_constructible<date::year>{}, "");
|
||||
static_assert( std::is_trivially_copy_assignable<date::year>{}, "");
|
||||
static_assert( std::is_trivially_move_constructible<date::year>{}, "");
|
||||
|
@ -61,7 +61,7 @@
|
||||
#include <type_traits>
|
||||
|
||||
static_assert( std::is_trivially_destructible<date::year_month>{}, "");
|
||||
static_assert(!std::is_default_constructible<date::year_month>{}, "");
|
||||
static_assert( std::is_default_constructible<date::year_month>{}, "");
|
||||
static_assert( std::is_trivially_copy_constructible<date::year_month>{}, "");
|
||||
static_assert( std::is_trivially_copy_assignable<date::year_month>{}, "");
|
||||
static_assert( std::is_trivially_move_constructible<date::year_month>{}, "");
|
||||
|
@ -64,7 +64,7 @@
|
||||
#include <type_traits>
|
||||
|
||||
static_assert( std::is_trivially_destructible<date::year_month_day>{}, "");
|
||||
static_assert(!std::is_default_constructible<date::year_month_day>{}, "");
|
||||
static_assert( std::is_default_constructible<date::year_month_day>{}, "");
|
||||
static_assert( std::is_trivially_copy_constructible<date::year_month_day>{}, "");
|
||||
static_assert( std::is_trivially_copy_assignable<date::year_month_day>{}, "");
|
||||
static_assert( std::is_trivially_move_constructible<date::year_month_day>{}, "");
|
||||
|
Loading…
x
Reference in New Issue
Block a user