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

Missing patch to shared_ptr.hh from last commit.

Support counting even if the pointer type is converted to a compatible
base class.

Previously

class A{};
class B: public A{};

shared_ptr<A> b(new B);
shared_ptr<B> b(a);

b.get_count()==1 && b.get_count()==1 would wrongly hold true.

[[Imported from SVN: r7047]]
parent 5e9443a4
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment