aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/Event.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/common/Event.h')
-rw-r--r--include/cru/common/Event.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/cru/common/Event.h b/include/cru/common/Event.h
index 14d68833..18d2c570 100644
--- a/include/cru/common/Event.h
+++ b/include/cru/common/Event.h
@@ -4,6 +4,7 @@
#include "SelfResolvable.h"
#include <algorithm>
+#include <cassert>
#include <functional>
#include <memory>
#include <utility>
@@ -235,7 +236,7 @@ class EventRevokerGuard {
EventRevoker Get() {
// revoker is only null when this is moved
// you shouldn't use a moved instance
- Expects(revoker_);
+ assert(revoker_);
return *revoker_;
}