forked from boostorg/smart_ptr
Rename parameters to cope with gcc 4.8 -Wshadow
This commit is contained in:
@ -353,9 +353,9 @@ public:
|
|||||||
typedef A type;
|
typedef A type;
|
||||||
|
|
||||||
template<class U>
|
template<class U>
|
||||||
sp_array_state(const U& allocator, std::size_t size) BOOST_SP_NOEXCEPT
|
sp_array_state(const U& _allocator, std::size_t _size) BOOST_SP_NOEXCEPT
|
||||||
: allocator_(allocator),
|
: allocator_(_allocator),
|
||||||
size_(size) { }
|
size_(_size) { }
|
||||||
|
|
||||||
A& allocator() BOOST_SP_NOEXCEPT {
|
A& allocator() BOOST_SP_NOEXCEPT {
|
||||||
return allocator_;
|
return allocator_;
|
||||||
@ -376,8 +376,8 @@ public:
|
|||||||
typedef A type;
|
typedef A type;
|
||||||
|
|
||||||
template<class U>
|
template<class U>
|
||||||
sp_size_array_state(const U& allocator, std::size_t) BOOST_SP_NOEXCEPT
|
sp_size_array_state(const U& _allocator, std::size_t) BOOST_SP_NOEXCEPT
|
||||||
: allocator_(allocator) { }
|
: allocator_(_allocator) { }
|
||||||
|
|
||||||
A& allocator() BOOST_SP_NOEXCEPT {
|
A& allocator() BOOST_SP_NOEXCEPT {
|
||||||
return allocator_;
|
return allocator_;
|
||||||
|
Reference in New Issue
Block a user