Commit b092a645 authored by Dominik Charousset's avatar Dominik Charousset

Merge branch 'topic/serialization-fixes'

parents 5a94d7ba a24819cd
......@@ -44,6 +44,7 @@ using sorted_builtin_types =
std::vector<actor_addr>, // @addrvec
atom_value, // @atom
std::vector<char>, // @charbuf
config_value, // @config_value
down_msg, // @down
downstream_msg, // @downstream_msg
duration, // @duration
......
......@@ -559,6 +559,14 @@ message::cli_arg::cli_arg(std::string nstr, std::string tstr,
// -- related non-members ------------------------------------------------------
error inspect(serializer& sink, message& msg) {
return msg.save(sink);
}
error inspect(deserializer& source, message& msg) {
return msg.load(source);
}
std::string to_string(const message& msg) {
if (msg.empty())
return "<empty-message>";
......
......@@ -60,6 +60,7 @@ const char* numbered_type_names[] = {
"@addrvec",
"@atom",
"@charbuf",
"@config_value",
"@down",
"@downstream_msg",
"@duration",
......
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