Skip to content

Commit 00d9f81

Browse files
committed
added missing case
Signed-off-by: Michael Carlstrom <[email protected]>
1 parent 5ae4342 commit 00d9f81

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_factory_constructors.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,13 @@ TEST_SUBMODULE(factory_constructors, m) {
376376
py::print("noisy placement new");
377377
return p;
378378
}
379-
static void operator delete(void *p, size_t s) {
379+
static void operator delete(void *p) noexcept {
380380
py::print("noisy delete");
381-
::operator delete(p, s);
381+
::operator delete(p);
382+
}
383+
static void operator delete(void *p, size_t) {
384+
py::print("noisy delete size");
385+
::operator delete(p);
382386
}
383387
static void operator delete(void *, void *) { py::print("noisy placement delete"); }
384388
};

0 commit comments

Comments
 (0)