Commit 873538b0 authored by Dominik Charousset's avatar Dominik Charousset

Replace optional with maybe in protobuf example

parent 66201c8a
......@@ -139,7 +139,7 @@ behavior server(broker* self, actor buddy) {
};
}
optional<uint16_t> as_u16(const std::string& str) {
maybe<uint16_t> as_u16(const std::string& str) {
return static_cast<uint16_t>(stoul(str));
}
......
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