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

[Merge][BugFix] r7420 from branches/release-cmake-2.2: Copy rep_ member of...

[Merge][BugFix] r7420 from branches/release-cmake-2.2: Copy rep_ member of SharedCounterImpl during copy constructor (otherwise the deleter might work on a unitialized pointer).


[[Imported from SVN: r7423]]
parents fafc3391 4d1dd952
No related branches found
No related tags found
No related merge requests found
......@@ -191,7 +191,7 @@ namespace Dune
{}
/** @brief Copy constructor with type conversion. */
SharedCountImpl(const SharedCountImpl& rep)
: SharedCount(rep), deleter_(rep.deleter_) {}
: SharedCount(rep), deleter_(rep.deleter_), rep_(rep.rep_) {}
/** @brief Destructor, deletes element_type* rep_ using deleter. */
~SharedCountImpl()
{ deleter_(rep_); }
......
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