From 2719f7ca86abae1b59353876e5db7e20a811013a Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Mon, 8 Oct 2012 23:15:16 +0000 Subject: [PATCH] Fixed compile error on GCC --- gtsam/inference/BayesTreeCliqueBase-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/inference/BayesTreeCliqueBase-inl.h b/gtsam/inference/BayesTreeCliqueBase-inl.h index e119cd35b..81795bf22 100644 --- a/gtsam/inference/BayesTreeCliqueBase-inl.h +++ b/gtsam/inference/BayesTreeCliqueBase-inl.h @@ -332,7 +332,7 @@ namespace gtsam { // The variables we want to keepSet are exactly the ones in S sharedConditional p_F_S = this->conditional(); - std::vector indicesS = p_F_S->parents(); + std::vector indicesS(p_F_S->beginParents(), p_F_S->endParents()); inverseReduction.applyInverse(indicesS); gttoc(Reduce);