From cb5d4c31274341ecaf1dd8b875af6323e0221027 Mon Sep 17 00:00:00 2001 From: Kai Ni Date: Tue, 16 Feb 2010 23:20:39 +0000 Subject: [PATCH] instantiate SymbolicConfig --- cpp/Point2.h | 3 +-- cpp/SymbolicFactorGraph.cpp | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cpp/Point2.h b/cpp/Point2.h index c1579b610..de9fe6ba4 100644 --- a/cpp/Point2.h +++ b/cpp/Point2.h @@ -74,8 +74,7 @@ namespace gtsam { /** Lie group functions */ /** Global print calls member function */ - inline void print(const Point2& p, const std::string& s) { p.print(s); } - inline void print(const Point2& p) { p.print(); } + inline void print(const Point2& p, const std::string& s = "Point2") { p.print(s); } /** Dimensionality of the tangent space */ inline size_t dim(const Point2& obj) { return 2; } diff --git a/cpp/SymbolicFactorGraph.cpp b/cpp/SymbolicFactorGraph.cpp index fc38ed84f..70c893f2c 100644 --- a/cpp/SymbolicFactorGraph.cpp +++ b/cpp/SymbolicFactorGraph.cpp @@ -20,6 +20,8 @@ using namespace std; namespace gtsam { + INSTANTIATE_LIE_CONFIG(Symbol, Point2) + // Explicitly instantiate so we don't have to include everywhere template class FactorGraph;