From 33b772fc21ce7c4e7a56c9ed812a035e2f4d86d8 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Mon, 17 Sep 2012 00:23:56 +0000 Subject: [PATCH] Accept list in constructor --- gtsam/inference/IndexConditional.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/gtsam/inference/IndexConditional.h b/gtsam/inference/IndexConditional.h index c1cbbdaac..941502b76 100644 --- a/gtsam/inference/IndexConditional.h +++ b/gtsam/inference/IndexConditional.h @@ -75,10 +75,16 @@ namespace gtsam { } /** Constructor from keys and nr of frontal variables */ - IndexConditional(const std::vector& keys, size_t nrFrontals) : - Base(keys, nrFrontals) { - assertInvariants(); - } + IndexConditional(const std::vector& keys, size_t nrFrontals) : + Base(keys, nrFrontals) { + assertInvariants(); + } + + /** Constructor from keys and nr of frontal variables */ + IndexConditional(const std::list& keys, size_t nrFrontals) : + Base(keys, nrFrontals) { + assertInvariants(); + } /// @} /// @name Standard Interface