bool check() { if(active) { if(!time_left()) { if(!callback.empty()) { callback(); callback.clear(); } active = false; return true; } } return false; }
bool is_empty_function(function<Sig, IArchive, OArchive> const& f) { return f.empty(); }
binary_function(function const& a, function const& b) : a(a), b(b) { BOOST_ASSERT(!a.empty()); BOOST_ASSERT(!b.empty()); }
unary_function(function const& a) : a(a) { BOOST_ASSERT(!a.empty()); }