Преглед изворни кода

BUG: Fix bug on windows. You cannot cout std::string directly

Andy Cedilnik пре 22 година
родитељ
комит
d34c342b11
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Source/cmCTest.cxx

+ 1 - 1
Source/cmCTest.cxx

@@ -2992,7 +2992,7 @@ std::string cmCTest::GenerateRegressionImages(const std::string& xml)
           << "\t\t\t<NamedMeasurement" 
           << " name=\"" << measurementfile.match(idx) << "\""
           << " text=\"text/string\""
-          << "><Value>File " << filename << " not found</Value></NamedMeasurement>" 
+          << "><Value>File " << filename.c_str() << " not found</Value></NamedMeasurement>" 
           << std::endl;
         std::cout << "File \"" << filename.c_str() << "\" not found." << std::endl;
         }