test_const_load_fail3.cpp 612 B

12345678910111213141516171819202122
  1. /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
  2. // test_const.cpp
  3. // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
  4. // Use, modification and distribution is subject to the Boost Software
  5. // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. // compile only
  8. #include <boost/archive/text_iarchive.hpp>
  9. using namespace boost::archive;
  10. struct A {
  11. template<class Archive>
  12. void serialize(Archive & ar, unsigned int version) {
  13. }
  14. };
  15. void f2(text_iarchive & ia, const A * const & a){
  16. ia >> a;
  17. }