|
Boost : |
Subject: Re: [boost] bug in type_traits/is_virtual_base_of ??
From: Daniel Larimer (dlarimer_at_[hidden])
Date: 2010-02-11 13:40:25
Here is the correct output running on Linux with gcc 4.3.2
A,C 0
B,C 0
A,D 0
virtual B,D 1
A,E 0
B,E 0
sizeof(A) 4
sizeof(B) 4
sizeof(C) 12
sizeof(D) 16
sizeof(E) 16
Perhaps some quirky difference between 32/64 bit? Or did I just find a bug in Apple's version of gcc?
Dan
On Feb 11, 2010, at 12:59 PM, John Maddock wrote:
>> 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
>> };
>>
>
> Which specific compiler version? I need something that I can reproduce here... John.
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk