Permalink
Browse files

doesn't compile on Linux

  • Loading branch information...
1 parent 282c79e commit 614178721dd8c0e1f727e32e6461edf4716ea6b4 slychief committed Jul 5, 2012
Showing with 12 additions and 4 deletions.
  1. +12 −4 pc-qa-matchbox/DPQA_Train/DPQA_Train.cpp
@@ -93,11 +93,15 @@ void getDescriptorsFromFile( string& dirName, string& filename, BOWKMeansTrainer
}
catch (exception& e)
{
- VerboseOutput::println(string("train"), string("*** WARNING: failed to load descriptors: %s"), e.what());
+ stringstream ss;
+ ss << "*** WARNING: failed to load descriptors: " << e.what();
+ VerboseOutput::println(string("train"), ss.str() );
}
catch (cv::Exception& e)
{
- VerboseOutput::println(string("train"), string("*** WARNING: failed to load descriptors: %s"), e.msg);
+ stringstream ss;
+ ss << "*** WARNING: failed to load descriptors: " << e.msg;
+ VerboseOutput::println(string("train"), ss.str() );
}
if (fs1.isOpened())
@@ -107,11 +111,15 @@ void getDescriptorsFromFile( string& dirName, string& filename, BOWKMeansTrainer
}
catch(exception& e)
{
- VerboseOutput::println(string("train"), string("*** WARNING: failed to load descriptors: %s"), e.what());
+ stringstream ss;
+ ss << "*** WARNING: failed to load descriptors: " << e.what();
+ VerboseOutput::println(string("train"), ss.str() );
}
catch (cv::Exception& e)
{
- VerboseOutput::println(string("train"), string("*** WARNING: failed to load descriptors: %s"), e.msg);
+ stringstream ss;
+ ss << "*** WARNING: failed to load descriptors: " << e.msg;
+ VerboseOutput::println(string("train"), ss.str() );
}
}

0 comments on commit 6141787

Please sign in to comment.