diff --git a/gtsam/discrete/DiscreteKey.h b/gtsam/discrete/DiscreteKey.h index f829e4f7c..ed76bb6a4 100644 --- a/gtsam/discrete/DiscreteKey.h +++ b/gtsam/discrete/DiscreteKey.h @@ -39,6 +39,9 @@ namespace gtsam { // Forward all constructors. using std::vector::vector; + /// Get around gcc bug, which does not like above. + DiscreteKeys() {} + /// Construct from a key DiscreteKeys(const DiscreteKey& key) { push_back(key);