From 5431d745730578eeaaf3685d29f43036b1987566 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Sat, 30 Jun 2012 01:45:06 +0000 Subject: [PATCH] Fixed incorrect iterator type --- gtsam/nonlinear/Values.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/nonlinear/Values.cpp b/gtsam/nonlinear/Values.cpp index bb66943eb..58099d149 100644 --- a/gtsam/nonlinear/Values.cpp +++ b/gtsam/nonlinear/Values.cpp @@ -120,7 +120,7 @@ namespace gtsam { /* ************************************************************************* */ void Values::insert(Key j, const Value& val) { Key key = j; // Non-const duplicate to deal with non-const insert argument - std::pair insertResult = values_.insert(key, val.clone_()); + std::pair insertResult = values_.insert(key, val.clone_()); if(!insertResult.second) throw ValuesKeyAlreadyExists(j); }