From 4de506a446f89bae1c83ce88bb760c52745fe139 Mon Sep 17 00:00:00 2001 From: Alex Cunningham Date: Fri, 22 Jun 2012 17:50:36 +0000 Subject: [PATCH] Added constructor from base model type --- gtsam/linear/SharedNoiseModel.h | 1 + 1 file changed, 1 insertion(+) diff --git a/gtsam/linear/SharedNoiseModel.h b/gtsam/linear/SharedNoiseModel.h index bc90fee49..c9b2de6d4 100644 --- a/gtsam/linear/SharedNoiseModel.h +++ b/gtsam/linear/SharedNoiseModel.h @@ -26,6 +26,7 @@ namespace gtsam { // note, deliberately not in noiseModel namespace /// @{ SharedNoiseModel() {} + SharedNoiseModel(const noiseModel::Base::shared_ptr& 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) {}