Boost logo

Boost :

From: John Maddock (John_Maddock_at_[hidden])
Date: 2001-05-03 06:08:52


>but the constant value of '_MAX_ALIGN' must be set
>manually by the client. This isn't really acceptable.
>It would be useful if an appropriate value were available
>in the boost library.

I don't think it can be unambiguously calculated, but given:

union max_align
{
int i;
long l;
long long ll;
double d;
long double ld;
};

Then:

boost::alignment_of<max_align>::value

should be somewhere near it.

- John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/


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