From ac3c5da871566792648088aa59bdffbd08423f57 Mon Sep 17 00:00:00 2001 From: Markus Blatt <mblatt@dune-project.org> Date: Wed, 13 Mar 2013 17:00:05 +0000 Subject: [PATCH] Fixed initialization order to prevent pedantic warnings. [[Imported from SVN: r7421]] --- dune/common/shared_ptr.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dune/common/shared_ptr.hh b/dune/common/shared_ptr.hh index 76273fdfb..0bdf02d90 100644 --- a/dune/common/shared_ptr.hh +++ b/dune/common/shared_ptr.hh @@ -257,7 +257,7 @@ namespace Dune template<class T> template<class T1> inline shared_ptr<T>::shared_ptr(const shared_ptr<T1>& other) - : rep_(other.rep_), count_(other.count_) + : count_(other.count_), rep_(other.rep_) { if (rep_) ++(count_->count_); @@ -265,7 +265,7 @@ namespace Dune template<class T> inline shared_ptr<T>::shared_ptr(const shared_ptr& other) - : rep_(other.rep_), count_(other.count_) + : count_(other.count_), rep_(other.rep_) { if (rep_) ++(count_->count_); -- GitLab