[ptr_container] Patch to avoid warnings

Hello, attached patch fixes two warnings about unused template parameters in the current ptr_container library. I'm not 100% sure about the first chunk, which even might be a bug: template< class Compare, class Allocator > ptr_map_adapter_base( const Compare& comp, - const allocator_type& a ) + const Allocator& a ) : base_type( comp, a ) { } Is this the right fix? The second chunk should be fairly obvious. Could the author please check this and possibly apply the patch? Regards, Markus Index: ptr_map_adapter.hpp =================================================================== --- ptr_map_adapter.hpp (revision 46270) +++ ptr_map_adapter.hpp (working copy) @@ -227,7 +227,7 @@ template< class Compare, class Allocator > ptr_map_adapter_base( const Compare& comp, - const allocator_type& a ) + const Allocator& a ) : base_type( comp, a ) { } Index: detail/reversible_ptr_container.hpp =================================================================== --- detail/reversible_ptr_container.hpp (revision 46270) +++ detail/reversible_ptr_container.hpp (working copy) @@ -661,7 +661,6 @@ #define BOOST_PTR_CONTAINER_DEFINE_COPY_CONSTRUCTORS( PC, base_type ) \ \ - template< class U > \ explicit PC( const PC& r ) : base_type( r ) { } \ \ template< class U > \
participants (1)
-
Markus Schöpflin