From 2791f2930bf9c3b1adc113e7788d79254ecf1a84 Mon Sep 17 00:00:00 2001 From: krunalchande Date: Tue, 23 Dec 2014 18:12:24 -0500 Subject: [PATCH] fix return value from key to size_t. --- gtsam/linear/VectorValues.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/linear/VectorValues.h b/gtsam/linear/VectorValues.h index ce33116ab..a599e7269 100644 --- a/gtsam/linear/VectorValues.h +++ b/gtsam/linear/VectorValues.h @@ -135,7 +135,7 @@ namespace gtsam { /// @{ /** Number of variables stored. */ - Key size() const { return values_.size(); } + size_t size() const { return values_.size(); } /** Return the dimension of variable \c j. */ size_t dim(Key j) const { return at(j).rows(); }