]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/serialization/test/test_const_save_warn2.cpp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / libs / serialization / test / test_const_save_warn2.cpp
CommitLineData
7c673cae
FG
1/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
2// test_const.cpp
3
f67539c2 4// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
7c673cae
FG
5// Use, modification and distribution is subject to the Boost Software
6// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt)
8
9// compile only
10
11#include <boost/archive/text_oarchive.hpp>
12
13using namespace boost::archive;
14
15struct A {
16 template<class Archive>
17 void serialize(Archive & ar, unsigned int version) {
18 }
19};
20
21void f2(text_oarchive & oa, A * & a){
22 oa << a;
23}
24