|
Boost : |
From: Branko Èibej (branko.cibej_at_[hidden])
Date: 2000-08-24 01:01:18
Greg Colvin wrote:
>
> I think if you do it like this
>
> struct Rule
> {
> struct Fixed {
> unsigned long cost;
> const void* action;
> } fixed;
> const char* symbols[1]; // actually a variable-length array
> };
>
> then you can align rules on sizeof(Rule::Fixed) boundaries.
The alignment requirements for Rule might be stricter than the
requirements for Rule::Fixed.
Brane
-- Branko Èibej <branko.cibej_at_[hidden]> HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia voice: (+386 1) 586 53 49 fax: (+386 1) 586 52 70
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk