fix linker error, namespace issue

release/4.3a0
cbeall3 2014-06-05 10:59:06 -04:00
parent c13569df4c
commit a343c947b4
1 changed files with 6 additions and 3 deletions

View File

@ -19,15 +19,18 @@
#include <gtsam/geometry/StereoPoint2.h>
using namespace std;
using namespace gtsam;
namespace gtsam {
/* ************************************************************************* */
void StereoPoint2::print(const string& s) const {
cout << s << "(" << uL_ << ", " << uR_ << ", " << v_ << ")" << endl;
}
/* ************************************************************************* */
/* ************************************************************************* */
ostream &operator<<(ostream &os, const StereoPoint2& p) {
os << '(' << p.uL() << ", " << p.uR() << p.v() << ')';
os << '(' << p.uL() << ", " << p.uR() << ", " << p.v() << ')';
return os;
}
} // namespace gtsam