forked from boostorg/container
Simplify tests to support old gcc 4.2 compilers
This commit is contained in:
1 parent
2a04243de7
commit
e707b671fd
2 files changed
+15
-9
No files matched your search
@@ -97,10 +97,12 @@ bool CheckEqualPairContainers(const MyBoostCont &boostcont, const MyStdCont &std
|
||||
typename MyBoostCont::const_iterator itboost(boostcont.begin()), itboostend(boostcont.end());
|
||||
typename MyStdCont::const_iterator itstd(stdcont.begin());
|
||||
for(; itboost != itboostend; ++itboost, ++itstd){
|
||||
if(itboost->first != key_type(itstd->first))
|
||||
key_type k(itstd->first);
|
||||
if(itboost->first != k)
|
||||
return false;
|
||||
|
||||
if(itboost->second != mapped_type(itstd->second))
|
||||
mapped_type m(itstd->second);
|
||||
if(itboost->second != m)
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user