Boost C++ Libraries: Ticket #11107: A lot of warnings on MSVC due to protected destructor being non-virtual https://svn.boost.org/trac10/ticket/11107 <p> See pull-request <a class="ext-link" href="https://github.com/boostorg/test/pull/41"><span class="icon">​</span>https://github.com/boostorg/test/pull/41</a> </p> <p> The fact that the destructor is non virtual looks like a bug to me. This was introduced in 2005, rev ef3fe4a826ebc31afbbb4c781dd3d9e504f360f1, with a commit log message "dll support introduced". It sounds like it has connection with the visibility of the destructors across dll/so boundaries, maybe for some broken compiler. </p> <p> I am in favor of removing this workaround. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11107 Trac 1.4.3 Jürgen Hunold Thu, 12 Mar 2015 19:00:23 GMT <link>https://svn.boost.org/trac10/ticket/11107#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11107#comment:1</guid> <description> <p> Full log "virtual.zip" attached. Commandline: </p> <p> <strong> ..\..\..\b2 -a cxxflags=-we4265 -j3 2&gt;&amp;1 | "C:\Program Files (x86)\git\bin\tee.exe" virtual.log </strong> </p> <p> See <a class="ext-link" href="https://msdn.microsoft.com/en-us/library/wzxffy8c.aspx"><span class="icon">​</span>https://msdn.microsoft.com/en-us/library/wzxffy8c.aspx</a> for the official description. We normally make this a level 3 warning, I've changed this to an error to get clearer test result. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Mon, 16 Mar 2015 22:43:19 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11107#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11107#comment:2</guid> <description> <p> Thanks. So I'm not addressing the trillion of warnings from error_info_container in boost.exception. </p> <p> The warning for collection is indeed a true one, good catch! I am adding a virtual destructor to class dataset, which should solve most of the issues in your log. </p> <p> However, this has nothing to do with the pull request in fact (and Gennadiy was right). The macro that gets activated with your change does not solve the problem I can see in this log. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Mon, 16 Mar 2015 22:47:01 GMT</pubDate> <title>owner changed https://svn.boost.org/trac10/ticket/11107#comment:3 https://svn.boost.org/trac10/ticket/11107#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Gennadiy Rozental</span> to <span class="trac-author">Raffi Enficiaud</span> </li> </ul> Ticket Raffi Enficiaud Mon, 16 Mar 2015 22:47:16 GMT status changed https://svn.boost.org/trac10/ticket/11107#comment:4 https://svn.boost.org/trac10/ticket/11107#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Jürgen Hunold Wed, 18 Mar 2015 12:30:39 GMT attachment set https://svn.boost.org/trac10/ticket/11107 https://svn.boost.org/trac10/ticket/11107 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">virtual.zip</span> </li> </ul> <p> virtual destructor error log </p> Ticket Jürgen Hunold Wed, 18 Mar 2015 12:31:27 GMT <link>https://svn.boost.org/trac10/ticket/11107#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11107#comment:5</guid> <description> <p> Sorry, I had the patch still active when doing the first run. Uploaded the correct run. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Wed, 18 Mar 2015 14:54:51 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11107#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11107#comment:6</guid> <description> <p> A quick look at this tells me that most of the warnings can be safely ignored: in fact most of the instances are not meant to be used on the heap, but rather on the stack. </p> <p> I will have a deeper look tonight/tomorrow. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Thu, 22 Jun 2017 23:04:36 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/11107#comment:7 https://svn.boost.org/trac10/ticket/11107#comment:7 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.65.0</span> </li> </ul> Ticket Raffi Enficiaud Sun, 15 Dec 2019 19:16:50 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11107#comment:8 https://svn.boost.org/trac10/ticket/11107#comment:8 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Addressed by rev 13ca3e07f071ee36a0c5be5c6a0b58be7ab4637c </p> Ticket