Last change
on this file since 29 was
29,
checked in by landauf, 16 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
672 bytes
|
Line | |
---|
1 | /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 |
---|
2 | // test_const.cpp |
---|
3 | |
---|
4 | // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . |
---|
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_iarchive.hpp> |
---|
12 | #include <boost/serialization/nvp.hpp> |
---|
13 | |
---|
14 | using namespace boost::archive; |
---|
15 | |
---|
16 | struct A { |
---|
17 | template<class Archive> |
---|
18 | void serialize(Archive & ar, unsigned int version) { |
---|
19 | } |
---|
20 | }; |
---|
21 | |
---|
22 | void f2(text_iarchive & ia, A * const & a){ |
---|
23 | ia >> BOOST_SERIALIZATION_NVP(a); |
---|
24 | } |
---|
25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.