From 707b60aaf659c5c724c0e32609cdf38af1013f45 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Wed, 4 Sep 2013 14:20:07 +0000 Subject: [PATCH] Fixed warning --- gtsam/inference/JunctionTree-inst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/inference/JunctionTree-inst.h b/gtsam/inference/JunctionTree-inst.h index 99e11084a..b3ec1fc98 100644 --- a/gtsam/inference/JunctionTree-inst.h +++ b/gtsam/inference/JunctionTree-inst.h @@ -208,7 +208,7 @@ namespace gtsam { // putting orphan subtrees in the index - they'll already be in the index of the ISAM2 // object they're added to. BOOST_FOREACH(const Key& j, myData.bayesTreeNode->conditional()->frontals()) - nodesIndex.insert(std::make_pair(j, myData.bayesTreeNode)).second; + nodesIndex.insert(std::make_pair(j, myData.bayesTreeNode)); // Store remaining factor in parent's gathered factors if(!eliminationResult.second->empty())