From abe9b281af33bc45f535b10e9424b500a3ac8eb4 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Thu, 12 Jan 2023 10:54:31 -0500 Subject: [PATCH] return DiscreteKeys as a vector instead of a set --- gtsam/hybrid/HybridFactorGraph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtsam/hybrid/HybridFactorGraph.cpp b/gtsam/hybrid/HybridFactorGraph.cpp index 098942f10..2224c4a38 100644 --- a/gtsam/hybrid/HybridFactorGraph.cpp +++ b/gtsam/hybrid/HybridFactorGraph.cpp @@ -25,7 +25,7 @@ namespace gtsam { /* ************************************************************************* */ -std::set HybridFactorGraph::discreteKeys() const { +DiscreteKeys HybridFactorGraph::discreteKeys() const { std::set keys; for (auto& factor : factors_) { if (auto p = boost::dynamic_pointer_cast(factor)) { @@ -39,7 +39,7 @@ std::set HybridFactorGraph::discreteKeys() const { } } } - return keys; + return DiscreteKeys(keys.begin(), keys.end()); } /* ************************************************************************* */