Boost logo

Boost :

From: Bill Wade (bill.wade_at_[hidden])
Date: 2000-08-24 13:12:25


> > > > const void* action;
> > > > const char** symbols(){ return (const char**) (&action+1); }

> > > And if action were of type char instead of
> > > const void*, then your symbols() array would most likely be
> misaligned.
> >
> > Correct. In that case you'd need to do something extra to
> ensure alignment.
>
> Why? Doesn't char have minimal alignment?

Yes, but the symbols() result points at a pointer, not at a char.


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