Fixed forwarding error in Visual 2010

[SVN r80521]
This commit is contained in:
Ion Gaztañaga
2012-09-13 22:06:16 +00:00
parent e5d655952d
commit 5b1ad64bf9
4 changed files with 127 additions and 45 deletions

View File

@@ -679,8 +679,7 @@ bool test_many_equal_allocation(Allocator &a)
typename multiallocation_chain::size_type n = chain.size();
while(!chain.empty()){
buffers.push_back(ipcdetail::to_raw_pointer(chain.front()));
chain.pop_front();
buffers.push_back(ipcdetail::to_raw_pointer(chain.pop_front()));
}
if(n != std::size_t((i+1)*2))
return false;
@@ -788,8 +787,7 @@ bool test_many_different_allocation(Allocator &a)
break;
typename multiallocation_chain::size_type n = chain.size();
while(!chain.empty()){
buffers.push_back(ipcdetail::to_raw_pointer(chain.front()));
chain.pop_front();
buffers.push_back(ipcdetail::to_raw_pointer(chain.pop_front()));
}
if(n != ArraySize)
return false;