Skip to content

Commit

Permalink
fix bad test
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Nov 14, 2023
1 parent c9cd25b commit b017d0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/UnitTests/Core/Utilities/DelegateTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ BOOST_AUTO_TEST_CASE(OwningDelegateTest) {
{
auto s = std::make_unique<const SignatureTest>();
Delegate<void(int&, int)> d;
d.connect<&SignatureTest::modify>(std::move(s));
// This should not compile, as it would be a memory leak
// d.connect<&SignatureTest::modify>(std::move(s));

int v = 0;
d(v, 42);
Expand Down

0 comments on commit b017d0a

Please sign in to comment.