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

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: r7046]]
parent 450d96a0
No related branches found
No related tags found
No related merge requests found
Loading
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