summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-11-06 23:34:09 (GMT)
committerBrad King <brad.king@kitware.com>2023-11-07 14:13:25 (GMT)
commit641c02a3ce5bb693ca6a9bd125dbefe4906fd9e5 (patch)
tree358bbb91631d3f24199c1771d638e1d94ded7a04 /Source
parente4483b887147a8698a48babe6653ea9b9387d6e2 (diff)
downloadCMake-641c02a3ce5bb693ca6a9bd125dbefe4906fd9e5.zip
CMake-641c02a3ce5bb693ca6a9bd125dbefe4906fd9e5.tar.gz
CMake-641c02a3ce5bb693ca6a9bd125dbefe4906fd9e5.tar.bz2
cmList: Avoid using operator-> on input iterator
As of C++23, some standard library iterator types deprecate it.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmList.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmList.h b/Source/cmList.h
index 1b94c2f..c29aae7 100644
--- a/Source/cmList.h
+++ b/Source/cmList.h
@@ -1192,7 +1192,7 @@ private:
}
} else {
for (; first != last; ++first) {
- if (!first->empty() || emptyElements == EmptyElements::Yes) {
+ if (!(*first).empty() || emptyElements == EmptyElements::Yes) {
insertPos = container.insert(insertPos, *first);
++insertPos;
}