From bf3e9cc7af0b886e4ddbb16c5536b0476f502c88 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 12 Jul 2014 20:35:14 +0300 Subject: [PATCH] -Wshadow fixes. --- include/boost/smart_ptr/detail/array_allocator.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/smart_ptr/detail/array_allocator.hpp b/include/boost/smart_ptr/detail/array_allocator.hpp index 069f844..fb8e662 100644 --- a/include/boost/smart_ptr/detail/array_allocator.hpp +++ b/include/boost/smart_ptr/detail/array_allocator.hpp @@ -108,14 +108,14 @@ namespace boost { typedef typename array_base::type type; - as_allocator(const A& allocator, type** result) - : A(allocator), + as_allocator(const A& allocator_, type** result) + : A(allocator_), data(result) { } - as_allocator(const A& allocator, std::size_t size, + as_allocator(const A& allocator_, std::size_t size, type** result) - : A(allocator), + : A(allocator_), data(size, result) { }