Commit 6c5a483d authored by Dominik Charousset's avatar Dominik Charousset

Add missing return in type inspection example

parent c13c4b7b
...@@ -458,7 +458,7 @@ an ``enum class`` otherwise. ...@@ -458,7 +458,7 @@ an ``enum class`` otherwise.
if (f.has_human_readable_format()) { if (f.has_human_readable_format()) {
auto get = [&x] { return to_string(x); }; auto get = [&x] { return to_string(x); };
auto set = [&x](std::string str) { return parse(str, x); }; auto set = [&x](std::string str) { return parse(str, x); };
f.object(x).fields(f.field("value", get, set)); return f.object(x).fields(f.field("value", get, set));
} else { } else {
using default_impl = caf::default_inspector_access<weekday>; using default_impl = caf::default_inspector_access<weekday>;
return default_impl::apply_object(f, x); return default_impl::apply_object(f, x);
......
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