add invalidate

This commit is contained in:
Naios 2015-06-11 17:52:19 +02:00
parent e5a3c1fbcd
commit 2c7f77483c
2 changed files with 9 additions and 0 deletions

View File

@ -102,6 +102,13 @@ public:
// TODO Transmute the returned callback here.
return Continuable<Callback<_ATy...>>(std::move(*this));
}
/// Invalidates the Continuable
Continuable& invalidate()
{
_released = true;
return *this;
}
};
namespace detail

View File

@ -98,6 +98,8 @@ int main(int /*argc*/, char** /*argv*/)
});
cba1.invalidate();
CastSpell(63362);
std::vector<int> myvec;