From 641c02a3ce5bb693ca6a9bd125dbefe4906fd9e5 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 6 Nov 2023 18:34:09 -0500 Subject: cmList: Avoid using operator-> on input iterator As of C++23, some standard library iterator types deprecate it. --- Source/cmList.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v0.12