Boost logo

Boost :

Subject: Re: [boost] bug in type_traits/is_virtual_base_of ??
From: Daniel Larimer (dlarimer_at_[hidden])
Date: 2010-02-11 12:18:05

cast the bool to an int, still does not work. It works for most cases, for example this works:

struct C : public A, public B
        virtual test(); //

struct C : public A, public B
        virtual test();
        float parameter; // DOESN"T WORK ANY MORE

On Feb 11, 2010, at 4:43 AM, John Maddock wrote:

>> Using boost 1_41 I found what I believe to be a bug in is_virtual_base_of. The following code reports that A and B are both virtual base classes of
> Works for me on Win32 with both VC9 and G++4.0, tested 1.41 and current Trunk.
> The only thing I notice is that you're passing a bool to printf, but telling it to expect an int - could it be reading garbage off the stack?
> Otherwise stumped yours, John.
> _______________________________________________
> Unsubscribe & other changes:

Boost list run by bdawes at, gregod at, cpdaniel at, john at