Commit 750d9492 authored by Matthias Vallentin's avatar Matthias Vallentin

Make message_handler interface similar to behavior.

parent 9934dbc1
......@@ -69,6 +69,13 @@ class message_handler {
*/
message_handler(impl_ptr ptr);
/**
* Checks whether the message handler is not empty.
*/
inline operator bool() const {
return static_cast<bool>(m_impl);
}
/**
* Create a message handler a list of match expressions,
* functors, or other message handlers.
......
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