[Boost-bugs] [Boost C++ Libraries] #4000: is_empty and is_stateless don't work with inaccessible destructors

Subject: [Boost-bugs] [Boost C++ Libraries] #4000: is_empty and is_stateless don't work with inaccessible destructors
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-12 09:43:32


#4000: is_empty and is_stateless don't work with inaccessible destructors
--------------------------------+-------------------------------------------
 Reporter: cskludev@… | Owner:
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: None
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: |
--------------------------------+-------------------------------------------
 The following code:

 struct Indestructible {
 private:
   ~Indestructible() {}
 };

 bool isEmpty = boost::is_empty<Indestructible>::value;
 bool isStateless = boost::is_stateless<Indestructible>::value;

 generates the following errors (on MSVC2008):

 warning C4624: 'boost::detail::empty_helper_t1<T>' : destructor could not
 be generated because a base class destructor is inaccessible

 This does compile on gcc (3.4.5 using MinGW).

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4000>
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:02 UTC