Skip to content

Commit bfcfb3d

Browse files
committed
Fix Cpp17Destructible for pointer-to-class type
1 parent 4aa8142 commit bfcfb3d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

test/core.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,16 @@ TEST_CASE("Cpp17Destructible")
369369
STATIC_REQUIRE(!std::destructible<void>);
370370
STATIC_REQUIRE( std::destructible<int&>);
371371
}
372+
{
373+
// Pointer types *should* be destructible
374+
STATIC_REQUIRE(iris::req::Cpp17Destructible<int*>);
375+
376+
struct Defined {};
377+
STATIC_REQUIRE(iris::req::Cpp17Destructible<Defined*>);
378+
379+
struct Undefined;
380+
STATIC_REQUIRE(iris::req::Cpp17Destructible<Undefined*>);
381+
}
372382
}
373383

374384
namespace {

0 commit comments

Comments
 (0)