Boost logo

Boost :

From: Andreas Huber (ah2003_at_[hidden])
Date: 2003-03-13 06:29:53


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?

Thanks,

Andreas


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