Fixes for VC2005 and replaced some remaining placement news/destroys with allocator traits

[SVN r76262]
This commit is contained in:
Ion Gaztañaga
2012-01-01 18:48:00 +00:00
parent 3f3a63d92a
commit ccff43c8fb
5 changed files with 67 additions and 145 deletions
+1 -1
View File
@@ -1328,7 +1328,7 @@ class vector : private container_detail::vector_alloc_holder<A>
template<class AllocVersion>
void priv_shrink_to_fit(AllocVersion
, typename container_detail::enable_if_c<
container_detail::is_same<AllocVersion, allocator_v2>::value >::type * = 0)
!container_detail::is_same<AllocVersion, allocator_v1>::value >::type * = 0)
{
if(this->members_.m_capacity){
if(!size()){