From 6b89ca002eb46033e8fb2b740968859626acf0fc Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 1 Jul 2024 22:57:33 -0700 Subject: [PATCH] test_class.cpp: transfer CHECK_SMART_HOLDER from smart_holder branch (replaces BAKEIN_BREAK). --- tests/test_class.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_class.cpp b/tests/test_class.cpp index 356818546..e2981aca4 100644 --- a/tests/test_class.cpp +++ b/tests/test_class.cpp @@ -606,11 +606,15 @@ CHECK_NOALIAS(8); static_assert(std::is_same>>::value, \ "DoesntBreak" #N " has wrong holder_type!") +#define CHECK_SMART_HOLDER(N) \ + static_assert(std::is_same::value, \ + "DoesntBreak" #N " has wrong holder_type!") CHECK_HOLDER(1, unique); CHECK_HOLDER(2, unique); CHECK_HOLDER(3, unique); -// BAKEIN_BREAK CHECK_HOLDER(4, unique); -// BAKEIN_BREAK CHECK_HOLDER(5, unique); +CHECK_SMART_HOLDER(4); +CHECK_SMART_HOLDER(5); CHECK_HOLDER(6, shared); CHECK_HOLDER(7, shared); CHECK_HOLDER(8, shared);