diff --git a/gtsam/nonlinear/ISAM2UpdateParams.h b/gtsam/nonlinear/ISAM2UpdateParams.h index 34e4d353a..5c3cec63f 100644 --- a/gtsam/nonlinear/ISAM2UpdateParams.h +++ b/gtsam/nonlinear/ISAM2UpdateParams.h @@ -20,6 +20,7 @@ #include // GTSAM_EXPORT #include // Key, KeySet #include //FactorIndices +#include namespace gtsam { @@ -36,16 +37,16 @@ struct ISAM2UpdateParams { /** An optional map of keys to group labels, such that a variable can be * constrained to a particular grouping in the BayesTree */ - std::optional> constrainedKeys{{}}; + std::optional> constrainedKeys{std::nullopt}; /** An optional set of nonlinear keys that iSAM2 will hold at a constant * linearization point, regardless of the size of the linear delta */ - std::optional> noRelinKeys{{}}; + std::optional> noRelinKeys{std::nullopt}; /** An optional set of nonlinear keys that iSAM2 will re-eliminate, regardless * of the size of the linear delta. This allows the provided keys to be * reordered. */ - std::optional> extraReelimKeys{{}}; + std::optional> extraReelimKeys{std::nullopt}; /** Relinearize any variables whose delta magnitude is sufficiently large * (Params::relinearizeThreshold), regardless of the relinearization @@ -62,7 +63,7 @@ struct ISAM2UpdateParams { * depend on Keys `X(2)`, `X(3)`. Next call to ISAM2::update() must include * its `newAffectedKeys` field with the map `13 -> {X(2), X(3)}`. */ - std::optional> newAffectedKeys{{}}; + std::optional> newAffectedKeys{std::nullopt}; /** By default, iSAM2 uses a wildfire update scheme that stops updating when * the deltas become too small down in the tree. This flagg forces a full