Commit 34d86dd7 authored by Dominik Charousset's avatar Dominik Charousset

Fix visit of optional<T>

parent e7805402
......@@ -261,7 +261,7 @@ template <class Inspector, class T>
typename std::enable_if<Inspector::is_saving::value,
typename Inspector::result_type>::type
inspect(Inspector& f, optional<T>& x) {
return x ? f(false) : f(true, *x);
return x ? f(true, *x) : f(false);
}
template <class T>
......
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