Commit 004368a8 authored by Matthias Vallentin's avatar Matthias Vallentin

Apply inspector API changes to examples

parent 1a7c1c88
...@@ -74,14 +74,14 @@ scope_guard<Fun> make_scope_guard(Fun f) { ...@@ -74,14 +74,14 @@ scope_guard<Fun> make_scope_guard(Fun f) {
} }
template <class Inspector> template <class Inspector>
typename std::enable_if<Inspector::is_saving::value, typename std::enable_if<Inspector::reads_state,
typename Inspector::result_type>::type typename Inspector::result_type>::type
inspect(Inspector& f, foo& x) { inspect(Inspector& f, foo& x) {
return f(meta::type_name("foo"), x.a(), x.b()); return f(meta::type_name("foo"), x.a(), x.b());
} }
template <class Inspector> template <class Inspector>
typename std::enable_if<Inspector::is_loading::value, typename std::enable_if<Inspector::writes_state,
typename Inspector::result_type>::type typename Inspector::result_type>::type
inspect(Inspector& f, foo& x) { inspect(Inspector& f, foo& x) {
int a; int a;
......
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