Index: clone_allocator.hpp =================================================================== --- clone_allocator.hpp (revision 43991) +++ clone_allocator.hpp (working copy) @@ -74,7 +74,7 @@ } template< class U > - static void deallocate_clone( const U* r ) + static void deallocate_clone( const U* /*r*/ ) { // do nothing } Index: detail/map_iterator.hpp =================================================================== --- detail/map_iterator.hpp (revision 43991) +++ detail/map_iterator.hpp (working copy) @@ -20,6 +20,11 @@ #include #include +#if defined(BOOST_MSVC) +# pragma warning(push) +# pragma warning(disable:4512) // Assignment operator could not be generated. +#endif + namespace boost { namespace ptr_container_detail @@ -84,4 +89,8 @@ } +#if defined(BOOST_MSVC) +# pragma warning(pop) #endif + +#endif Index: detail/serialize_ptr_map_adapter.hpp =================================================================== --- detail/serialize_ptr_map_adapter.hpp (revision 43991) +++ detail/serialize_ptr_map_adapter.hpp (working copy) @@ -17,7 +17,7 @@ { template -void save(Archive& ar, const ptr_container_detail::ptr_map_adapter_base& c, unsigned int version) +void save(Archive& ar, const ptr_container_detail::ptr_map_adapter_base& c, unsigned int /*version*/) { typedef ptr_container_detail::ptr_map_adapter_base container; typedef BOOST_DEDUCED_TYPENAME container::const_iterator const_iterator; @@ -35,7 +35,7 @@ } template -void load(Archive& ar, ptr_map_adapter& c, unsigned int version) +void load(Archive& ar, ptr_map_adapter& c, unsigned int /*version*/) { typedef ptr_map_adapter container; typedef BOOST_DEDUCED_TYPENAME container::key_type key_type; @@ -58,7 +58,7 @@ } template -void load(Archive& ar, ptr_multimap_adapter& c, unsigned int version) +void load(Archive& ar, ptr_multimap_adapter& c, unsigned int /*version*/) { typedef ptr_multimap_adapter container; typedef BOOST_DEDUCED_TYPENAME container::key_type key_type; Index: detail/serialize_reversible_cont.hpp =================================================================== --- detail/serialize_reversible_cont.hpp (revision 43991) +++ detail/serialize_reversible_cont.hpp (working copy) @@ -66,7 +66,7 @@ { template -void save(Archive& ar, const ptr_container_detail::reversible_ptr_container& c, unsigned int version) +void save(Archive& ar, const ptr_container_detail::reversible_ptr_container& c, unsigned int /*version*/) { ar << boost::serialization::make_nvp( ptr_container_detail::count(), ptr_container_detail::serialize_as_const(c.size()) ); @@ -74,7 +74,7 @@ } template -void load(Archive& ar, ptr_container_detail::reversible_ptr_container& c, unsigned int version) +void load(Archive& ar, ptr_container_detail::reversible_ptr_container& c, unsigned int /*version*/) { typedef ptr_container_detail::reversible_ptr_container container_type; typedef BOOST_DEDUCED_TYPENAME container_type::size_type size_type; Index: ptr_array.hpp =================================================================== --- ptr_array.hpp (revision 43991) +++ ptr_array.hpp (working copy) @@ -36,12 +36,12 @@ public: typedef Allocator allocator_type; - ptr_array_impl( Allocator a = Allocator() ) + ptr_array_impl( Allocator /*a*/ = Allocator() ) { this->assign( 0 ); } - ptr_array_impl( size_t, T*, Allocator a = Allocator() ) + ptr_array_impl( size_t, T*, Allocator /*a*/ = Allocator() ) { this->assign( 0 ); } Index: ptr_map_adapter.hpp =================================================================== --- ptr_map_adapter.hpp (revision 43991) +++ ptr_map_adapter.hpp (working copy) @@ -153,6 +153,8 @@ } void release() { released_ = true; } + private: + eraser& operator=(const eraser&); }; mapped_reference insert_lookup( const key_type& key ) Index: serialize_ptr_array.hpp =================================================================== --- serialize_ptr_array.hpp (revision 43991) +++ serialize_ptr_array.hpp (working copy) @@ -16,13 +16,13 @@ { template -void save(Archive& ar, const ptr_array& c, unsigned int version) +void save(Archive& ar, const ptr_array& c, unsigned int /*version*/) { ptr_container_detail::save_helper(ar, c); } template -void load(Archive& ar, ptr_array& c, unsigned int version) +void load(Archive& ar, ptr_array& c, unsigned int /*version*/) { typedef ptr_array container_type; typedef BOOST_DEDUCED_TYPENAME container_type::size_type size_type; Index: serialize_ptr_vector.hpp =================================================================== --- serialize_ptr_vector.hpp (revision 43991) +++ serialize_ptr_vector.hpp (working copy) @@ -16,7 +16,7 @@ { template -void load(Archive& ar, ptr_vector& c, unsigned int version) +void load(Archive& ar, ptr_vector& c, unsigned int /*version*/) { typedef ptr_vector container_type; typedef BOOST_DEDUCED_TYPENAME container_type::size_type size_type;