diff options
author | David Cole <david.cole@kitware.com> | 2009-02-04 17:38:03 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2009-02-04 17:38:03 (GMT) |
commit | c6d499aba5c8848a559a76ee67c84abb992b138b (patch) | |
tree | 9dc2f97457c7c77d88ffacceab8b1b1e9ec2e4e9 /Source | |
parent | a27e9ca4a2fe780ab10d11fdf3759e0c8d76a0d3 (diff) | |
download | CMake-c6d499aba5c8848a559a76ee67c84abb992b138b.zip CMake-c6d499aba5c8848a559a76ee67c84abb992b138b.tar.gz CMake-c6d499aba5c8848a559a76ee67c84abb992b138b.tar.bz2 |
COMP: Iterator version of std::set not available with vs6 implementation of STL. Use explicit iteration to insert individual elements one at a time. Sigh.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CTest/cmCTestSubmitHandler.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestSubmitHandler.cxx b/Source/CTest/cmCTestSubmitHandler.cxx index 6f77a71..d5e0434 100644 --- a/Source/CTest/cmCTestSubmitHandler.cxx +++ b/Source/CTest/cmCTestSubmitHandler.cxx @@ -858,9 +858,13 @@ int cmCTestSubmitHandler::ProcessHandler() if (!this->Files.empty()) { - // Submit only the explicitly selected files: + // Submit the explicitly selected files: // - files.insert(this->Files.begin(), this->Files.end()); + cmCTest::SetOfStrings::const_iterator it; + for (it = this->Files.begin(); it != this->Files.end(); ++it) + { + files.insert(*it); + } } // Add to the list of files to submit from any selected, existing parts: @@ -1145,5 +1149,9 @@ void cmCTestSubmitHandler::SelectParts(std::set<cmCTest::Part> const& parts) //---------------------------------------------------------------------------- void cmCTestSubmitHandler::SelectFiles(cmCTest::SetOfStrings const& files) { - this->Files.insert(files.begin(), files.end()); + cmCTest::SetOfStrings::const_iterator it; + for (it = files.begin(); it != files.end(); ++it) + { + this->Files.insert(*it); + } } |