Boost C++ Libraries: Ticket #11325: has_nothrow_default_constructor incorrectly returns true https://svn.boost.org/trac10/ticket/11325 <p> The following test program reports errors on the newly added SunOS testers oracle-intel-S2-stlport4 and oracle-sparc-S2-stlport4: </p> <pre class="wiki">#include &lt;boost/type_traits/has_nothrow_constructor.hpp&gt; #include &lt;boost/core/lightweight_test.hpp&gt; #include &lt;boost/core/lightweight_test_trait.hpp&gt; namespace some_namespace { class base_class { public: base_class &amp; operator=(const base_class &amp;){ throw int(); } virtual ~base_class() {} }; class class_without_default_ctor : public base_class { public: char data; explicit class_without_default_ctor(char arg) : data(arg) {} }; } int main() { BOOST_TEST_TRAIT_FALSE((boost::has_nothrow_default_constructor&lt;some_namespace::class_without_default_ctor&gt;)); return boost::report_errors(); } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11325 Trac 1.4.3 John Maddock Wed, 20 May 2015 16:52:45 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11325#comment:1 https://svn.boost.org/trac10/ticket/11325#comment:1 <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">duplicate</span> </li> </ul> Ticket