Boost logo

Boost :

Subject: Re: [boost] Official boost macro to determine endianess?
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2017-04-05 13:58:28


Re-posting.

On 04/05/17 16:51, Andrey Semashev wrote:
> On 04/05/17 15:29, Frédéric Bron wrote:
>> Sorry, I should not have used #elif, in fact ALL macros are defined!
>> BOOST_ENDIAN_BIG_BYTE
>> BOOST_ENDIAN_BIG_WORD
>> BOOST_ENDIAN_LITTLE_BYTE
>> BOOST_ENDIAN_LITTLE_WORD
>> What does this mean?
>
> That's how Boost.Predef works:
>
> http://www.boost.org/doc/libs/1_63_0/doc/html/predef/using_the_predefs.html
>
> You should check the macro values instead of testing if they are defined
> (i.e. use #if instead of #ifdef).
>
> Also, please, don't top-post.
>


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