Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

doesn't compile on Linux

  • Loading branch information...
commit 614178721dd8c0e1f727e32e6461edf4716ea6b4 1 parent 282c79e
slychief authored

Showing 1 changed file with 12 additions and 4 deletions. Show diff stats Hide diff stats

  1. +12 4 pc-qa-matchbox/DPQA_Train/DPQA_Train.cpp
16 pc-qa-matchbox/DPQA_Train/DPQA_Train.cpp
@@ -93,11 +93,15 @@ void getDescriptorsFromFile( string& dirName, string& filename, BOWKMeansTrainer
93 93 }
94 94 catch (exception& e)
95 95 {
96   - VerboseOutput::println(string("train"), string("*** WARNING: failed to load descriptors: %s"), e.what());
  96 + stringstream ss;
  97 + ss << "*** WARNING: failed to load descriptors: " << e.what();
  98 + VerboseOutput::println(string("train"), ss.str() );
97 99 }
98 100 catch (cv::Exception& e)
99 101 {
100   - VerboseOutput::println(string("train"), string("*** WARNING: failed to load descriptors: %s"), e.msg);
  102 + stringstream ss;
  103 + ss << "*** WARNING: failed to load descriptors: " << e.msg;
  104 + VerboseOutput::println(string("train"), ss.str() );
101 105 }
102 106
103 107 if (fs1.isOpened())
@@ -107,11 +111,15 @@ void getDescriptorsFromFile( string& dirName, string& filename, BOWKMeansTrainer
107 111 }
108 112 catch(exception& e)
109 113 {
110   - VerboseOutput::println(string("train"), string("*** WARNING: failed to load descriptors: %s"), e.what());
  114 + stringstream ss;
  115 + ss << "*** WARNING: failed to load descriptors: " << e.what();
  116 + VerboseOutput::println(string("train"), ss.str() );
111 117 }
112 118 catch (cv::Exception& e)
113 119 {
114   - VerboseOutput::println(string("train"), string("*** WARNING: failed to load descriptors: %s"), e.msg);
  120 + stringstream ss;
  121 + ss << "*** WARNING: failed to load descriptors: " << e.msg;
  122 + VerboseOutput::println(string("train"), ss.str() );
115 123 }
116 124 }
117 125

0 comments on commit 6141787

Please sign in to comment.
Something went wrong with that request. Please try again.