Skip to content

Commit

Permalink
test_class.cpp: transfer CHECK_SMART_HOLDER from smart_holder branch …
Browse files Browse the repository at this point in the history
…(replaces BAKEIN_BREAK).
  • Loading branch information
Ralf W. Grosse-Kunstleve committed Jul 2, 2024
1 parent 6c227c7 commit 6b89ca0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,11 +606,15 @@ CHECK_NOALIAS(8);
static_assert(std::is_same<typename DoesntBreak##N::holder_type, \
std::TYPE##_ptr<BreaksBase<(N)>>>::value, \
"DoesntBreak" #N " has wrong holder_type!")
#define CHECK_SMART_HOLDER(N) \
static_assert(std::is_same<typename DoesntBreak##N::holder_type, \
pybindit::memory::smart_holder>::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);
Expand Down

0 comments on commit 6b89ca0

Please sign in to comment.