Boost logo

Boost :

From: gmane (fernando_cacciola_at_[hidden])
Date: 2003-03-13 08:59:22


Andreas Huber <ah2003_at_[hidden]> wrote in message
news:20030313112953.1547.qmail_at_web14204.mail.yahoo.com...
> Hi there
>
> I found the following lines (57-61) in boost/optional.hpp
>
> union dummy_u
> {
> char data[ sizeof(T) ];
> type_with_alignment< ::boost::alignment_of<T>::value > aligner_;
> } dummy_ ;
>
> Not that I understand a lot about alignment issues, but shouldn't
> line 60 read:
>
> typename type_with_alignment<
> ::boost::alignment_of<T>::value >::type aligner_;
>
> I.e. "::type" is missing?
>

:-0

You're absolutely right!!!

BTW: I wish I had a platform were misalignment does cause a fault, unlike
Windows.

Fixed.

Thank you!

Fernando Cacciola


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