Engaged invokable is destructible:

fix #147
This commit is contained in:
Vinnie Falco committed 2017-07-20 08:12:13 -07:00
1 parent f3b22f74b2
commit ae58a7f457
2 files changed
+3 -6

No files matched your search

+2 -6
View File
@@ -74,15 +74,11 @@ class invokable
alignas(holder<exemplar>) buf_type buf_;
public:
#ifndef NDEBUG
~invokable()
{
// Engaged invokables must be invoked before
// destruction otherwise the io_service
// invariants are broken w.r.t completions.
BOOST_ASSERT(! base_);
if(base_)
base_->~base();
}
#endif
invokable() = default;