From a18031ce60479c840b9b62c2437ddbd53f4624cc Mon Sep 17 00:00:00 2001
From: Franz Detro <franz.detro@native-instruments.de>
Date: Tue, 4 Sep 2012 14:49:03 +0200
Subject: [PATCH] fix warnings in boost bimap
---
boost/bimap/bimap.hpp | 2 +-
boost/bimap/detail/map_view_base.hpp | 2 +-
boost/bimap/detail/map_view_iterator.hpp | 8 ++++----
boost/bimap/detail/set_view_iterator.hpp | 8 ++++----
boost/bimap/relation/mutant_relation.hpp | 4 ++--
5 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/boost/bimap/bimap.hpp b/boost/bimap/bimap.hpp
index 3021b04..e94b9ca 100644
|
a
|
b
|
class bimap
|
| 382 | 382 | friend class boost::serialization::access; |
| 383 | 383 | |
| 384 | 384 | template<class Archive> |
| 385 | | void serialize(Archive & ar, const unsigned int version) |
| | 385 | void serialize(Archive & ar, const unsigned int) |
| 386 | 386 | { |
| 387 | 387 | ar & serialization::make_nvp("mi_core",core); |
| 388 | 388 | } |
diff --git a/boost/bimap/detail/map_view_base.hpp b/boost/bimap/detail/map_view_base.hpp
index 7900901..1357e65 100644
|
a
|
b
|
class non_mutable_data_unique_map_view_access
|
| 355 | 355 | } |
| 356 | 356 | |
| 357 | 357 | template< class CompatibleKey > |
| 358 | | data_type_ & operator[](const CompatibleKey& k) |
| | 358 | data_type_ & operator[](const CompatibleKey&) |
| 359 | 359 | { |
| 360 | 360 | BOOST_BIMAP_STATIC_ERROR( OPERATOR_BRACKET_IS_NOT_SUPPORTED, (Derived)); |
| 361 | 361 | } |
diff --git a/boost/bimap/detail/map_view_iterator.hpp b/boost/bimap/detail/map_view_iterator.hpp
index 4f0e20e..63368c6 100644
|
a
|
b
|
struct map_view_iterator : public map_view_iterator_base<Tag,Relation,CoreIterat
|
| 97 | 97 | friend class ::boost::serialization::access; |
| 98 | 98 | |
| 99 | 99 | template< class Archive > |
| 100 | | void save(Archive & ar, const unsigned int version) const |
| | 100 | void save(Archive & ar, const unsigned int) const |
| 101 | 101 | { |
| 102 | 102 | ar << ::boost::serialization::make_nvp("mi_iterator",this->base()); |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | template< class Archive > |
| 106 | | void load(Archive & ar, const unsigned int version) |
| | 106 | void load(Archive & ar, const unsigned int) |
| 107 | 107 | { |
| 108 | 108 | CoreIterator iter; |
| 109 | 109 | ar >> ::boost::serialization::make_nvp("mi_iterator",iter); |
| … |
… |
struct const_map_view_iterator :
|
| 178 | 178 | friend class ::boost::serialization::access; |
| 179 | 179 | |
| 180 | 180 | template< class Archive > |
| 181 | | void save(Archive & ar, const unsigned int version) const |
| | 181 | void save(Archive & ar, const unsigned int) const |
| 182 | 182 | { |
| 183 | 183 | ar << ::boost::serialization::make_nvp("mi_iterator",this->base()); |
| 184 | 184 | } |
| 185 | 185 | |
| 186 | 186 | template< class Archive > |
| 187 | | void load(Archive & ar, const unsigned int version) |
| | 187 | void load(Archive & ar, const unsigned int) |
| 188 | 188 | { |
| 189 | 189 | CoreIterator iter; |
| 190 | 190 | ar >> ::boost::serialization::make_nvp("mi_iterator",iter); |
diff --git a/boost/bimap/detail/set_view_iterator.hpp b/boost/bimap/detail/set_view_iterator.hpp
index d48f5c0..08d7a42 100644
|
a
|
b
|
struct set_view_iterator : public set_view_iterator_base<CoreIterator>::type
|
| 95 | 95 | friend class ::boost::serialization::access; |
| 96 | 96 | |
| 97 | 97 | template< class Archive > |
| 98 | | void save(Archive & ar, const unsigned int version) const |
| | 98 | void save(Archive & ar, const unsigned int) const |
| 99 | 99 | { |
| 100 | 100 | ar << ::boost::serialization::make_nvp("mi_iterator",this->base()); |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | template< class Archive > |
| 104 | | void load(Archive & ar, const unsigned int version) |
| | 104 | void load(Archive & ar, const unsigned int) |
| 105 | 105 | { |
| 106 | 106 | CoreIterator iter; |
| 107 | 107 | ar >> ::boost::serialization::make_nvp("mi_iterator",iter); |
| … |
… |
struct const_set_view_iterator : public const_set_view_iterator_base<CoreIterato
|
| 171 | 171 | friend class ::boost::serialization::access; |
| 172 | 172 | |
| 173 | 173 | template< class Archive > |
| 174 | | void save(Archive & ar, const unsigned int version) const |
| | 174 | void save(Archive & ar, const unsigned int) const |
| 175 | 175 | { |
| 176 | 176 | ar << ::boost::serialization::make_nvp("mi_iterator",this->base()); |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | template< class Archive > |
| 180 | | void load(Archive & ar, const unsigned int version) |
| | 180 | void load(Archive & ar, const unsigned int) |
| 181 | 181 | { |
| 182 | 182 | CoreIterator iter; |
| 183 | 183 | ar >> ::boost::serialization::make_nvp("mi_iterator",iter); |
diff --git a/boost/bimap/relation/mutant_relation.hpp b/boost/bimap/relation/mutant_relation.hpp
index 9aa28e4..2142906 100644
|
a
|
b
|
class relation_info_hook : public
|
| 142 | 142 | |
| 143 | 143 | #ifndef BOOST_BIMAP_DISABLE_SERIALIZATION |
| 144 | 144 | template< class Archive > |
| 145 | | void serialize(Archive & ar, const unsigned int version) |
| | 145 | void serialize(Archive & ar, const unsigned int) |
| 146 | 146 | { |
| 147 | 147 | ar & ::boost::serialization::make_nvp("left" , base_::left ); |
| 148 | 148 | ar & ::boost::serialization::make_nvp("right", base_::right); |
| … |
… |
class relation_info_hook<TA,TB,::boost::mpl::na,force_mutable> :
|
| 188 | 188 | |
| 189 | 189 | #ifndef BOOST_BIMAP_DISABLE_SERIALIZATION |
| 190 | 190 | template< class Archive > |
| 191 | | void serialize(Archive & ar, const unsigned int version) |
| | 191 | void serialize(Archive & ar, const unsigned int) |
| 192 | 192 | { |
| 193 | 193 | ar & ::boost::serialization::make_nvp("left" , base_::left ); |
| 194 | 194 | ar & ::boost::serialization::make_nvp("right", base_::right); |