mirror of
https://github.com/HowardHinnant/date.git
synced 2025-01-14 01:37:57 +08:00
Make Zone move-only
This commit is contained in:
parent
f19e7f22c7
commit
db9f0d19ba
15
test/tz_test/zone.pass.cpp
Normal file
15
test/tz_test/zone.pass.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
#include "tz.h"
|
||||
#include <type_traits>
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
using namespace std;
|
||||
using namespace date;
|
||||
static_assert( is_nothrow_destructible<Zone>{}, "");
|
||||
static_assert(!is_default_constructible<Zone>{}, "");
|
||||
static_assert(!is_copy_constructible<Zone>{}, "");
|
||||
static_assert(!is_copy_assignable<Zone>{}, "");
|
||||
static_assert( is_nothrow_move_constructible<Zone>{}, "");
|
||||
static_assert( is_nothrow_move_assignable<Zone>{}, "");
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user