forked from boostorg/beast
Fix weak_fn unit test.
This commit is contained in:
1 parent
c930151a95
commit
15c1055ff4
1 file changed
+3
-2
@@ -108,9 +108,10 @@ public:
|
||||
auto p = std::make_shared<T>(called);
|
||||
try
|
||||
{
|
||||
std::bind(weak_fn(&T::fis, p, throw_if_invalid<>()),
|
||||
1, std::placeholders::_1)("foo");
|
||||
auto call = std::bind(weak_fn(&T::fis, p, throw_if_invalid<>()),
|
||||
1, std::placeholders::_1);
|
||||
p.reset();
|
||||
call("foo");
|
||||
fail();
|
||||
}
|
||||
catch(std::bad_weak_ptr const&)
|
||||
|
||||
Reference in new issue
Block a user