Re: [Boost-bugs] [Boost C++ Libraries] #11323: is_virtual_base_of fails to build when virtual bases and their ancestors define identical virtual functions

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11323: is_virtual_base_of fails to build when virtual bases and their ancestors define identical virtual functions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-10-26 12:39:07


#11323: is_virtual_base_of fails to build when virtual bases and their ancestors
define identical virtual functions
-----------------------------------+-------------------------
  Reporter: leandro.gracia.gil@… | Owner: johnmaddock
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: type_traits
   Version: Boost 1.57.0 | Severity: Problem
Resolution: | Keywords:
-----------------------------------+-------------------------

Comment (by douwegelling@…):

 Using apple LLVM 8.0.0, this fails with pure virtual base class as well:

 {{{

 #include <iostream>
 #include <boost/type_traits.hpp>

 struct A { virtual void foo() = 0; };
 struct B : public virtual A { void foo() override {} };
 struct C : public B {};

 int main() {
   std::cout << boost::is_virtual_base_of<B, C>::value << std::endl;
   return 0;
 }

 }}}

 fails to compile on my machine. This makes boost::serialize completely
 unusable in combination with virtual inheritance

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11323#comment:3>
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:20 UTC