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.

This commit is contained in:
David Cole 2009-02-04 12:38:03 -05:00
parent a27e9ca4a2
commit c6d499aba5
1 changed files with 11 additions and 3 deletions

View File

@ -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);
}
}