[Boost-bugs] [Boost C++ Libraries] #11325: has_nothrow_default_constructor incorrectly returns true

Subject: [Boost-bugs] [Boost C++ Libraries] #11325: has_nothrow_default_constructor incorrectly returns true
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-05-20 07:27:55


#11325: has_nothrow_default_constructor incorrectly returns true
------------------------------+-------------------------
 Reporter: anonymous | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: type_traits
  Version: Boost 1.58.0 | Severity: Problem
 Keywords: |
------------------------------+-------------------------
 The following test program reports errors on the newly added SunOS testers
 oracle-intel-S2-stlport4 and
 oracle-sparc-S2-stlport4:

 {{{
 #include <boost/type_traits/has_nothrow_constructor.hpp>
 #include <boost/core/lightweight_test.hpp>
 #include <boost/core/lightweight_test_trait.hpp>

 namespace some_namespace
 {
   class base_class
   {
   public:
     base_class & operator=(const base_class &){ 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<some_namespace::class_without_default_ctor>));
   return boost::report_errors();
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11325>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC