Fixed warning

release/4.3a0
Frank Dellaert 2018-12-31 12:30:53 -05:00
parent 5c8fe7ba4a
commit 609019b585
1 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
#include <string>
#include <vector> #include <vector>
using namespace std; using namespace std;
@ -224,7 +225,7 @@ int main(int argc, char* argv[]) {
smartFactors[landmark]->add(StereoPoint2(xl, xr, y), X(frame), K); smartFactors[landmark]->add(StereoPoint2(xl, xr, y), X(frame), K);
} else { } else {
throw runtime_error("unexpected data type: " + type); throw runtime_error("unexpected data type: " + string(1, type));
} }
lastFrame = frame; lastFrame = frame;