Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2006-04-20 05:31:29


> template<std::size_t TAlign, std::size_t Align>
> struct is_aligned
> {
> BOOST_STATIC_CONSTANT(bool,
> value = (TAlign >= Align) & (TAlign % Align == 0)
> ^^^ <<---- here!
> );
> };
>
> Should it be "&&" instead of "&"?

Logically yes: however when you think about it, it actually makes no
practical difference, and I believe it was done that way deliberately as a
workaround for certain broken compilers that choke on logical expressions
"&&" inside integral constant expressions. So for now I'm going to leave it
alone.

John.


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