From 071e8678de8850dcfdde7624e3255f75f55baef4 Mon Sep 17 00:00:00 2001 From: Marc Chevrier Date: Thu, 21 Aug 2025 17:02:39 +0200 Subject: cmList: fix swap function definition swap function should be in the same namespace as the cmList class. Reported by https://pvs-studio.com/en/blog/posts/cpp/1277/ (N1) Issue: #27159 --- Source/cmList.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/cmList.h b/Source/cmList.h index c355910..8db8950 100644 --- a/Source/cmList.h +++ b/Source/cmList.h @@ -1319,12 +1319,10 @@ inline std::vector& operator+=(std::vector& l, return l; } -namespace std { inline void swap(cmList& lhs, cmList& rhs) noexcept { lhs.swap(rhs); } -} // namespace std namespace cm { inline void erase(cmList& list, std::string const& value) -- cgit v0.12