Boost C++ Libraries: Ticket #5940: Workaround for VC bug https://svn.boost.org/trac10/ticket/5940 <p> Visual C++: missing of destructor call of virtual base class when derived class is destructed by explicit qualified destructor call. <a class="ext-link" href="http://tinyurl.com/6b2suqx"><span class="icon">​</span>bug description</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5940 Trac 1.4.3 Antony Polukhin Sun, 25 Sep 2011 16:11:52 GMT attachment set https://svn.boost.org/trac10/ticket/5940 https://svn.boost.org/trac10/ticket/5940 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">optional.hpp-HEADcS7649.diff</span> </li> </ul> Ticket Antony Polukhin Sun, 25 Sep 2011 16:19:32 GMT <link>https://svn.boost.org/trac10/ticket/5940#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5940#comment:1</guid> <description> <p> Added patch, that replaces get_ptr_impl()-&gt;T::~T() with get_ptr_impl()-&gt;~T() for VC. </p> <p> That patch removes the memory leak. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Fri, 15 Feb 2013 19:19:46 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5940#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5940#comment:2</guid> <description> <p> I don't see any reason to make this conditional on VC. I'm not aware of any problems with plain get_ptr_impl()-&gt;~T(). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Fri, 15 Feb 2013 19:22:36 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5940#comment:3 https://svn.boost.org/trac10/ticket/5940#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/82915" title="Work around msvc bug when explicitly destroying a class with a virtual ...">[82915]</a>) Work around msvc bug when explicitly destroying a class with a virtual base. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5940" title="#5940: Support Requests: Workaround for VC bug (closed: fixed)">#5940</a>. </p> Ticket