diff --git a/dune/common/shared_ptr.hh b/dune/common/shared_ptr.hh index 76273fdfb4a72c1e45648887620fa5d71f0d5fff..0bdf02d90496709a7b48bf828f94e4db39f4593a 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_);