aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-08-29 09:53:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-08-29 09:53:48 +0200
commit48374dd6056032ae9b3dfd8408634dcec5f298ec (patch)
tree64623a2b65c211116419b31db0634005964ee5c0 /examples
parentf167e58e1bc3959f32da890022cccfa51f2c73ec (diff)
Add missing return statements in boost serialization example
Diffstat (limited to 'examples')
-rw-r--r--examples/cxx/tree/binary/boost/boost-archive-extraction.hxx1
-rw-r--r--examples/cxx/tree/binary/boost/boost-archive-insertion.hxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/examples/cxx/tree/binary/boost/boost-archive-extraction.hxx b/examples/cxx/tree/binary/boost/boost-archive-extraction.hxx
index 7711b28..1d70da8 100644
--- a/examples/cxx/tree/binary/boost/boost-archive-extraction.hxx
+++ b/examples/cxx/tree/binary/boost/boost-archive-extraction.hxx
@@ -180,6 +180,7 @@ namespace xsd
s.impl () >> size;
x.size (size);
s.impl ().load_binary (x.data (), size);
+ return s;
}
}
}
diff --git a/examples/cxx/tree/binary/boost/boost-archive-insertion.hxx b/examples/cxx/tree/binary/boost/boost-archive-insertion.hxx
index 7a00ef8..793dfb0 100644
--- a/examples/cxx/tree/binary/boost/boost-archive-insertion.hxx
+++ b/examples/cxx/tree/binary/boost/boost-archive-insertion.hxx
@@ -169,6 +169,7 @@ namespace xsd
std::size_t size (x.size());
s.impl () << size;
s.impl ().save_binary (x.data (), x.size ());
+ return s;
}
}
}