summaryrefslogtreecommitdiffstats
path: root/Help/guide/importing-exporting/MathFunctions/MathFunctions.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-09-03 13:36:40 (GMT)
committerBrad King <brad.king@kitware.com>2021-09-03 13:40:57 (GMT)
commit6e2f4029c0e850a7420fba2ab953c0b6323e13fb (patch)
treeed5e1d5ab074ac1026832ef0ec080beaf387c608 /Help/guide/importing-exporting/MathFunctions/MathFunctions.h
parent881e76e7c51c2aa8958252c4bc1166a8b00f24a7 (diff)
downloadCMake-6e2f4029c0e850a7420fba2ab953c0b6323e13fb.zip
CMake-6e2f4029c0e850a7420fba2ab953c0b6323e13fb.tar.gz
CMake-6e2f4029c0e850a7420fba2ab953c0b6323e13fb.tar.bz2
cmAlgorithms: Preserve const-ness in cmRemoveDuplicates range signature
The pattern `vec.erase(cmRemoveDuplicates(vec), vec.end())` fails to compile with GCC 4.8's libstdc++ if `cmRemoveDuplicates` returns a `const_iterator` because `end()` returns an `iterator`. Overload `cmRemoveDuplicates` to return an iterator type matching the const-ness of its argument.
Diffstat (limited to 'Help/guide/importing-exporting/MathFunctions/MathFunctions.h')
0 files changed, 0 insertions, 0 deletions