Ticket #1747: serial.diff
File serial.diff, 4.7 KB (added by , 15 years ago) |
---|
-
array.hpp
48 48 { 49 49 return m_element_count; 50 50 } 51 52 private: 53 array& operator=(const array&); 51 54 52 53 55 private: 54 56 value_type* m_t; 55 57 std::size_t const m_element_count; -
binary_object.hpp
56 56 m_t(rhs.m_t), 57 57 m_size(rhs.m_size) 58 58 {} 59 60 private: 61 binary_object& operator=(const binary_object&); 59 62 }; 60 63 61 64 // just a little helper to support the convention that all serialization -
deque.hpp
42 42 inline void load( 43 43 Archive & ar, 44 44 std::deque<U, Allocator> &t, 45 const unsigned int file_version45 const unsigned int /*file_version*/ 46 46 ){ 47 47 boost::serialization::stl::load_collection< 48 48 Archive, -
export.hpp
115 115 template<class T> 116 116 struct guid_initializer 117 117 { 118 const guid_initializer & export_guid(char const* key, mpl::false_){118 const guid_initializer & export_guid(char const* /*key*/, mpl::false_){ 119 119 // generates the statically-initialized objects whose constructors 120 120 // register the information allowing serialization of T objects 121 121 // through pointers to their base classes. 122 122 instantiate_ptr_serialization((T*)0, 0, adl_tag()); 123 123 return *this; 124 124 } 125 const guid_initializer & export_guid(char const* key, mpl::true_){125 const guid_initializer & export_guid(char const* /*key*/, mpl::true_){ 126 126 return *this; 127 127 } 128 128 const guid_initializer & export_guid(char const* key){ -
extended_type_info.hpp
42 42 // included in implementation of sets and maps. 43 43 const unsigned int m_type_info_key; 44 44 virtual bool 45 is_less_than(const extended_type_info & rhs) const {45 is_less_than(const extended_type_info &/*rhs*/) const { 46 46 assert(false); 47 47 return false; 48 48 }; 49 49 virtual bool 50 is_equal(const extended_type_info & rhs) const {50 is_equal(const extended_type_info &/*rhs*/) const { 51 51 assert(false); 52 52 return false; 53 53 }; … … 75 75 } 76 76 static const extended_type_info * find(const char *key); 77 77 // for plugins 78 virtual void * construct(unsigned int count= 0, ...) const {78 virtual void * construct(unsigned int /*count*/ = 0, ...) const { 79 79 assert(false); // must be implemented if used 80 80 return NULL; 81 81 }; 82 virtual void destroy(void const * const p) const {82 virtual void destroy(void const * const /*p*/) const { 83 83 assert(false); // must be implemented if used 84 84 } 85 85 }; -
valarray.hpp
37 37 // valarray<T> 38 38 39 39 template<class Archive, class U> 40 void save( Archive & ar, const STD::valarray<U> &t, const unsigned int file_version)40 void save( Archive & ar, const STD::valarray<U> &t, const unsigned int /*file_version*/ ) 41 41 { 42 42 const collection_size_type count(t.size()); 43 43 ar << BOOST_SERIALIZATION_NVP(count); … … 47 47 48 48 49 49 template<class Archive, class U> 50 void load( Archive & ar, STD::valarray<U> &t, const unsigned int file_version)50 void load( Archive & ar, STD::valarray<U> &t, const unsigned int /*file_version*/ ) 51 51 { 52 52 collection_size_type count; 53 53 ar >> BOOST_SERIALIZATION_NVP(count); -
variant.hpp
63 63 void save( 64 64 Archive & ar, 65 65 boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)> const & v, 66 unsigned int version66 unsigned int /*version*/ 67 67 ){ 68 68 int which = v.which(); 69 69 ar << BOOST_SERIALIZATION_NVP(which); … … 78 78 struct load_null { 79 79 template<class Archive, class V> 80 80 static void invoke( 81 Archive & ar,82 int which,83 V & v,84 unsigned int version81 Archive & /*ar*/, 82 int /*which*/, 83 V & /*v*/, 84 unsigned int /*version*/ 85 85 ){} 86 86 }; 87 87