Browse Source

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.

David Cole 17 năm trước cách đây
mục cha
commit
c6d499aba5
1 tập tin đã thay đổi với 11 bổ sung3 xóa
  1. 11 3
      Source/CTest/cmCTestSubmitHandler.cxx

+ 11 - 3
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);
+    }
 }