|
Boost : |
Subject: Re: [boost] Review request for Boost.Align
From: Peter Dimov (lists_at_[hidden])
Date: 2014-02-21 12:06:02
Glen Fernandes wrote:
> > I think that 'alignment' should be checked:
> > BOOST_ASSERT( alignment & (alignment - 1 ) == 0 );
>
> I'm positive you meant
> BOOST_ASSERT((alignment & (alignment - 1)) == 0);
> instead :-)
Aren't the C operator precedence rules wonderful?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk