From 0024796587b21df96e3264a24cab7384291a1b00 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 2 Aug 2021 21:12:30 +0100 Subject: Assert DbValue is copyable and moveable --- lib/dbTypes.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lib/dbTypes.cpp b/lib/dbTypes.cpp index c848045..56e7a86 100644 --- a/lib/dbTypes.cpp +++ b/lib/dbTypes.cpp @@ -18,3 +18,21 @@ namespace std { return std::visit(write {strm}, v); } } + +static_assert(std::is_copy_assignable_v); +static_assert(std::is_copy_assignable_v); +static_assert(std::is_copy_assignable_v); +static_assert(std::is_copy_assignable_v); +static_assert(std::is_copy_assignable_v); +static_assert(std::is_copy_assignable_v); +static_assert(std::is_copy_assignable_v); +static_assert(std::is_copy_assignable_v); + +static_assert(std::is_move_assignable_v); +static_assert(std::is_move_assignable_v); +static_assert(std::is_move_assignable_v); +static_assert(std::is_move_assignable_v); +static_assert(std::is_move_assignable_v); +static_assert(std::is_move_assignable_v); +static_assert(std::is_move_assignable_v); +static_assert(std::is_move_assignable_v); -- cgit v1.2.3