comparison DEPENDENCIES/generic/include/boost/archive/basic_archive.hpp @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
1 #ifndef BOOST_ARCHIVE_BASIC_ARCHIVE_HPP 1 #ifndef BOOST_ARCHIVE_BASIC_ARCHIVE_HPP
2 #define BOOST_ARCHIVE_BASIC_ARCHIVE_HPP 2 #define BOOST_ARCHIVE_BASIC_ARCHIVE_HPP
3 3
4 // MS compatible compilers support #pragma once 4 // MS compatible compilers support #pragma once
5 #if defined(_MSC_VER) && (_MSC_VER >= 1020) 5 #if defined(_MSC_VER)
6 # pragma once 6 # pragma once
7 #endif 7 #endif
8 8
9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
10 // basic_archive.hpp: 10 // basic_archive.hpp:
13 // Use, modification and distribution is subject to the Boost Software 13 // Use, modification and distribution is subject to the Boost Software
14 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 14 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
15 // http://www.boost.org/LICENSE_1_0.txt) 15 // http://www.boost.org/LICENSE_1_0.txt)
16 16
17 // See http://www.boost.org for updates, documentation, and revision history. 17 // See http://www.boost.org for updates, documentation, and revision history.
18 18 #include <cstring> // count
19 #include <boost/assert.hpp> 19 #include <boost/assert.hpp>
20 #include <boost/config.hpp> 20 #include <boost/config.hpp>
21 #include <boost/cstdint.hpp> // size_t 21 #include <boost/cstdint.hpp> // size_t
22 #include <boost/noncopyable.hpp> 22 #include <boost/noncopyable.hpp>
23 #include <boost/integer_traits.hpp> 23 #include <boost/integer_traits.hpp>
219 return const_cast<const char * &>(t); 219 return const_cast<const char * &>(t);
220 } 220 }
221 operator char * () { 221 operator char * () {
222 return t; 222 return t;
223 } 223 }
224 std::size_t size() const {
225 return std::strlen(t);
226 }
224 explicit class_name_type(const char *key_) 227 explicit class_name_type(const char *key_)
225 : t(const_cast<char *>(key_)){} 228 : t(const_cast<char *>(key_)){}
226 explicit class_name_type(char *key_) 229 explicit class_name_type(char *key_)
227 : t(key_){} 230 : t(key_){}
228 class_name_type & operator=(const class_name_type & rhs){ 231 class_name_type & operator=(const class_name_type & rhs){