Boost C++ Libraries: Ticket #4000: is_empty and is_stateless don't work with inaccessible destructors https://svn.boost.org/trac10/ticket/4000 <p> The following code: </p> <p> struct Indestructible { private: </p> <blockquote> <p> ~Indestructible() {} </p> </blockquote> <p> }; </p> <p> bool isEmpty = boost::is_empty&lt;Indestructible&gt;::value; bool isStateless = boost::is_stateless&lt;Indestructible&gt;::value; </p> <p> generates the following errors (on MSVC2008): </p> <p> warning C4624: 'boost::detail::empty_helper_t1&lt;T&gt;' : destructor could not be generated because a base class destructor is inaccessible </p> <p> This does compile on gcc (3.4.5 using MinGW). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4000 Trac 1.4.3 Steven Watanabe Fri, 12 Mar 2010 15:12:37 GMT component changed; owner set https://svn.boost.org/trac10/ticket/4000#comment:1 https://svn.boost.org/trac10/ticket/4000#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">type_traits</span> </li> </ul> <p> That isn't an error. It's a warning. </p> Ticket John Maddock Fri, 12 Mar 2010 16:57:30 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4000#comment:2 https://svn.boost.org/trac10/ticket/4000#comment:2 <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/60525" title="Fixes #4000.">[60525]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4000" title="#4000: Bugs: is_empty and is_stateless don't work with inaccessible destructors (closed: fixed)">#4000</a>. </p> Ticket