Commit 3d7a0500 authored by Dominik Charousset's avatar Dominik Charousset

ostream support for match_hint

parent 555aa1af
......@@ -31,6 +31,8 @@
#ifndef CPPA_MATCH_HINT_HPP
#define CPPA_MATCH_HINT_HPP
#include <iosfwd>
namespace cppa {
/**
......@@ -43,6 +45,9 @@ enum class match_hint {
handle
};
// implemented in string_serialization.cpp
std::ostream& operator<<(std::ostream&, match_hint);
} // namespace cppa
#endif // CPPA_MATCH_HINT_HPP
......@@ -513,4 +513,9 @@ string to_verbose_string(const exception& e) {
return oss.str();
}
std::ostream& operator<<(std::ostream& out, match_hint mh) {
return out << (mh == match_hint::handle ? "match_hint::handle"
: "match_hint::skip");
}
} // namespace cppa
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