From fde3805aab1e472476b9ee2eb1cc8240ab5295bc Mon Sep 17 00:00:00 2001 From: dellaert Date: Mon, 10 Nov 2014 16:44:48 +0100 Subject: [PATCH] Added Mike's desired code snippet --- gtsam.h | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/gtsam.h b/gtsam.h index c42dadec2..f4eca8f83 100644 --- a/gtsam.h +++ b/gtsam.h @@ -1670,17 +1670,6 @@ class Values { void print(string s) const; bool equals(const gtsam::Values& other, double tol) const; - void insert(size_t j, const gtsam::Value& value); - template - void insert(size_t j, const T& value); void insert(const gtsam::Values& values); void update(const gtsam::Values& values); void erase(size_t j); @@ -1704,6 +1693,18 @@ class Values { // void update(size_t j, const gtsam::Value& val); void insert(size_t j, const gtsam::Pose2& t); void update(size_t j, const gtsam::Pose2& t); + + // But it would be nice if this worked: + // template + // void insert(size_t j, const T& value); }; // Actually a FastList