From 2f16d8f6a14f6dfc22e6d43044c2c821c39bc46d Mon Sep 17 00:00:00 2001 From: John Rogers Date: Mon, 1 Feb 2010 16:04:14 +0000 Subject: [PATCH] Changed the order of constructor initializers in GaussianFactor to remove compiler warnings --- cpp/GaussianFactor.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpp/GaussianFactor.h b/cpp/GaussianFactor.h index f0ffe03da..093001ee8 100644 --- a/cpp/GaussianFactor.h +++ b/cpp/GaussianFactor.h @@ -58,7 +58,7 @@ public: /** Construct unary factor */ GaussianFactor(const Symbol& key1, const Matrix& A1, const Vector& b, const SharedDiagonal& model) : - b_(b), model_(model) { + model_(model),b_(b) { As_.insert(make_pair(key1, A1)); } @@ -66,7 +66,7 @@ public: GaussianFactor(const Symbol& key1, const Matrix& A1, const Symbol& key2, const Matrix& A2, const Vector& b, const SharedDiagonal& model) : - b_(b), model_(model) { + model_(model), b_(b) { As_.insert(make_pair(key1, A1)); As_.insert(make_pair(key2, A2)); } @@ -76,7 +76,7 @@ public: const Symbol& key2, const Matrix& A2, const Symbol& key3, const Matrix& A3, const Vector& b, const SharedDiagonal& model) : - b_(b), model_(model) { + model_(model),b_(b) { As_.insert(make_pair(key1, A1)); As_.insert(make_pair(key2, A2)); As_.insert(make_pair(key3, A3)); @@ -85,7 +85,7 @@ public: /** Construct an n-ary factor */ GaussianFactor(const std::vector > &terms, const Vector &b, const SharedDiagonal& model) : - b_(b), model_(model) { + model_(model), b_(b) { for(unsigned int i=0; i