Boost logo

Boost :

From: Rozental, Gennadiy (gennadiy.rozental_at_[hidden])
Date: 2003-09-24 15:37:43


Probably not. Because of the allignment.

struct A {
int a;
char b;
};

sizeof(A) = 8

Gennadiy

> -----Original Message-----
> From: Bohdan [mailto:gejrlaug_at_[hidden]]
> Sent: Wednesday, September 24, 2003 5:36 PM
> To: boost_at_[hidden]
> Subject: [boost] Re: [ANN] State of Boost.Variant
>
>
> With Borland (bcc32[5.5.1] -a1 -Ve -Vx )
> sizeof(variant<int,char*>) is equal to 8.
> Shouldn't this size be 5 ?
>
>
> regards,
> bohdan
>


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