From 2a5fec6eda394f6f967a0d170e8e8ebda8f7a41a Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 17 Aug 2005 13:23:00 -0400 Subject: COMP: Cannot use first/last insertion constructor of std::set because it is not available on all platforms. --- Source/cmLocalUnixMakefileGenerator3.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index f688549..5fbf5fe 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -2736,8 +2736,12 @@ cmLocalUnixMakefileGenerator3 } // Sort for efficient lookup. - std::set generatedFiles(generatedFilesVec.begin(), - generatedFilesVec.end()); + std::set generatedFiles; + for(std::vector::iterator gfi = generatedFilesVec.begin(); + gfi != generatedFilesVec.end(); ++gfi) + { + generatedFiles.insert(*gfi); + } // for each language we need to scan, scan it const char *langStr = mf->GetSafeDefinition("CMAKE_DEPENDS_LANGUAGES"); -- cgit v0.12