diff options
author | B. Stack <bgstack15@gmail.com> | 2021-08-18 11:26:25 +0000 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2021-08-18 11:26:25 +0000 |
commit | 3569c0964edd9bb68fe8d360180e087c373bf6cc (patch) | |
tree | ec5580fe98230ce8eb25a5ed6e53b3ec5dfd03f9 /zen/stl_tools.h | |
parent | Merge branch '11.12-fix' into 'master' (diff) | |
parent | add upstream 11.13 (diff) | |
download | FreeFileSync-3569c0964edd9bb68fe8d360180e087c373bf6cc.tar.gz FreeFileSync-3569c0964edd9bb68fe8d360180e087c373bf6cc.tar.bz2 FreeFileSync-3569c0964edd9bb68fe8d360180e087c373bf6cc.zip |
Merge branch 'b11.13' into 'master'11.13
add upstream 11.13
See merge request opensource-tracking/FreeFileSync!37
Diffstat (limited to 'zen/stl_tools.h')
-rw-r--r-- | zen/stl_tools.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zen/stl_tools.h b/zen/stl_tools.h index a1c5b7b1..e4cf2b5d 100644 --- a/zen/stl_tools.h +++ b/zen/stl_tools.h @@ -39,7 +39,7 @@ void removeDuplicates(std::vector<T, Alloc>& v, CompLess less); template <class T, class Alloc, class CompLess> void removeDuplicatesStable(std::vector<T, Alloc>& v, CompLess less); -template <class T, class Alloc> +template <class T, class Alloc> void removeDuplicatesStable(std::vector<T, Alloc>& v); //searching STL containers @@ -142,8 +142,8 @@ template <class T, class Alloc, class CompLess> inline void removeDuplicatesStable(std::vector<T, Alloc>& v, CompLess less) { std::set<T, CompLess> usedItems(less); - v.erase(std::remove_if(v.begin(), v.end(), - [&usedItems](const T& e) { return !usedItems.insert(e).second; }), v.end()); + v.erase(std::remove_if(v.begin(), v.end(), + [&usedItems](const T& e) { return !usedItems.insert(e).second; }), v.end()); } |