diff --git a/gtsam/linear/SharedGaussian.h b/gtsam/linear/SharedGaussian.h index 3e6c5ce0f..7d86ab6d2 100644 --- a/gtsam/linear/SharedGaussian.h +++ b/gtsam/linear/SharedGaussian.h @@ -19,7 +19,6 @@ #pragma once #include -#include namespace gtsam { // note, deliberately not in noiseModel namespace diff --git a/gtsam/linear/SharedNoiseModel.h b/gtsam/linear/SharedNoiseModel.h index 5216057ce..c7cc84ab5 100644 --- a/gtsam/linear/SharedNoiseModel.h +++ b/gtsam/linear/SharedNoiseModel.h @@ -12,6 +12,7 @@ #pragma once #include +#include namespace gtsam { // note, deliberately not in noiseModel namespace @@ -20,6 +21,7 @@ namespace gtsam { // note, deliberately not in noiseModel namespace typedef noiseModel::Base::shared_ptr Base; SharedNoiseModel() {} + SharedNoiseModel(const SharedGaussian &p): Base(p) {} SharedNoiseModel(const noiseModel::Robust::shared_ptr& p): Base(p) {} SharedNoiseModel(const noiseModel::Gaussian::shared_ptr& p): Base(p) {} SharedNoiseModel(const noiseModel::Diagonal::shared_ptr& p): Base(p) {}