Fully qualified "unique" call to avoid ADL ambiguities with some older compilers.

This commit is contained in:
Ion Gaztañaga
2016-06-28 11:53:13 +02:00
parent e7faf92113
commit 7e232bbc19
2 changed files with 3 additions and 2 deletions

View File

@@ -1219,6 +1219,7 @@ use [*Boost.Container]? There are several reasons for that:
* [@https://svn.boost.org/trac/boost/ticket/11170 Trac #11170: ['"Doc slip for index_of"]].
* [@https://svn.boost.org/trac/boost/ticket/12177 Trac #12177: ['"vector::priv_merge uses unqualified uintptr_t"]].
* [@https://svn.boost.org/trac/boost/ticket/12183 Trac #12183: ['"GCC 6.1 thinks boost::container::string violates strict aliasing"]].
* [@https://svn.boost.org/trac/boost/ticket/12286 Trac #12286: ['"PMR flat_map from Boost Container does not compile"]].
[endsect]

View File

@@ -347,9 +347,9 @@ int string_test()
if(!CheckEqualStringVector(boostStringVect, stdStringVect)) return 1;
boostStringVect->erase((unique)(boostStringVect->begin(), boostStringVect->end()),
boostStringVect->erase(::unique(boostStringVect->begin(), boostStringVect->end()),
boostStringVect->end());
stdStringVect->erase((unique)(stdStringVect->begin(), stdStringVect->end()),
stdStringVect->erase(::unique(stdStringVect->begin(), stdStringVect->end()),
stdStringVect->end());
if(!CheckEqualStringVector(boostStringVect, stdStringVect)) return 1;