Boost logo

Boost :

Subject: Re: [boost] is_virtual_base_of ?
From: Daniel Frey (d.frey_at_[hidden])
Date: 2009-03-11 15:48:33


On 11.03.2009, at 19:47, Francois Barel wrote:

> Please see attached test (against trunk r51712). Either I'm missing
> something very obvious... or is_virtual_base_of reports a completely
> unrelated struct Z as being a virtual base of struct B, where it is
> clearly not.

That's probably because the classes are empty, is_virtual_base_of
might not be able to work in such a situation. One might check for
is_empty and static_assert on it as a protection, but that is not a
solution...

Regards, Daniel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk