Unordered: detab.

[SVN r73753]
This commit is contained in:
Daniel James
2011-08-14 18:52:20 +00:00
parent 435c21c155
commit f030480e44

View File

@ -239,7 +239,7 @@ namespace boost { namespace unordered { namespace detail {
if (ptr_) {
for(pointer p = ptr_; p != constructed_; ++p)
allocator_traits<Allocator>::destroy(alloc_,
boost::addressof(*p));
boost::addressof(*p));
allocator_traits<Allocator>::deallocate(alloc_, ptr_, length_);
}
@ -254,7 +254,7 @@ namespace boost { namespace unordered { namespace detail {
pointer end = ptr_ + static_cast<std::ptrdiff_t>(length_);
for(constructed_ = ptr_; constructed_ != end; ++constructed_)
allocator_traits<Allocator>::construct(alloc_,
boost::addressof(*constructed_), v);
boost::addressof(*constructed_), v);
}
pointer get() const