Commit e46ef38e authored by Marian Triebe's avatar Marian Triebe Committed by Dominik Charousset

Fix message handler accidentally accept timeouts

close #399
parent 942ffe67
...@@ -80,6 +80,9 @@ public: ...@@ -80,6 +80,9 @@ public:
template <class... Ts> template <class... Ts>
void assign(Ts... xs) { void assign(Ts... xs) {
static_assert(sizeof...(Ts) > 0, "assign without arguments called"); static_assert(sizeof...(Ts) > 0, "assign without arguments called");
static_assert(! detail::disjunction<may_have_timeout<
typename std::decay<Ts>::type>::value...
>::value, "Timeouts are only allowed in behaviors");
impl_ = detail::make_behavior(xs...); impl_ = detail::make_behavior(xs...);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment