client_wrapper.hxx, socket_wrapper.hxx: reorder member initialization order
[libt2n] / src / container.tcc
CommitLineData
19facd85
TJ
1/*
2Copyright (C) 2006 by Intra2net AG - Gerd v. Egidy
3
4The software in this package is distributed under the GNU General
5Public License version 2 (with a special exception described below).
6
7A copy of GNU General Public License (GPL) is included in this distribution,
8in the file COPYING.GPL.
9
10As a special exception, if other files instantiate templates or use macros
11or inline functions from this file, or you compile this file and link it
12with other works to produce a work based on this file, this file
13does not by itself cause the resulting work to be covered
14by the GNU General Public License.
15
16However the source code for this file must still be made available
17in accordance with section (3) of the GNU General Public License.
18
19This exception does not invalidate any other reasons why a work based
20on this file might be covered by the GNU General Public License.
21*/
d2cb39bb
RP
22
23namespace libt2n
24{
25
26template<class Archive>
27void result_container::serialize(Archive & ar, const unsigned int /* version */)
28{
29 // When the class Archive corresponds to an output archive, the
30 // & operator is defined similar to <<. Likewise, when the class Archive
31 // is a type of input archive the & operator is defined similar to >>.
32
33 ar & BOOST_SERIALIZATION_NVP(result_type);
34 ar & BOOST_SERIALIZATION_NVP(res);
35 ar & BOOST_SERIALIZATION_NVP(ex);
36}
37
38template<class Archive>
39void command_container::serialize(Archive & ar, const unsigned int /* version */)
40{
41 ar & BOOST_SERIALIZATION_NVP(cmd);
42}
43
44
45
46}