Skip to content
Snippets Groups Projects
Forked from Core Modules / dune-common
Source project has a limited visibility.
  • Markus Blatt's avatar
    08167899
    Missing patch to shared_ptr.hh from last commit. · 08167899
    Markus Blatt authored
    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]]
    08167899
    History
    Missing patch to shared_ptr.hh from last commit.
    Markus Blatt authored
    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]]