Skip to content
Snippets Groups Projects
Commit ac3c5da8 authored by Markus Blatt's avatar Markus Blatt
Browse files

Fixed initialization order to prevent pedantic warnings.

[[Imported from SVN: r7421]]
parent 4d1dd952
No related branches found
No related tags found
No related merge requests found
...@@ -257,7 +257,7 @@ namespace Dune ...@@ -257,7 +257,7 @@ namespace Dune
template<class T> template<class T>
template<class T1> template<class T1>
inline shared_ptr<T>::shared_ptr(const shared_ptr<T1>& other) 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_) if (rep_)
++(count_->count_); ++(count_->count_);
...@@ -265,7 +265,7 @@ namespace Dune ...@@ -265,7 +265,7 @@ namespace Dune
template<class T> template<class T>
inline shared_ptr<T>::shared_ptr(const shared_ptr& other) inline shared_ptr<T>::shared_ptr(const shared_ptr& other)
: rep_(other.rep_), count_(other.count_) : count_(other.count_), rep_(other.rep_)
{ {
if (rep_) if (rep_)
++(count_->count_); ++(count_->count_);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment