Boost logo

Boost :

Subject: Re: [boost] Official boost macro to determine endianess?
From: Olaf van der Spek (ml_at_[hidden])
Date: 2017-04-05 11:03:44


On Wed, Apr 5, 2017 at 11:00 AM, Frédéric Bron via Boost
<boost_at_[hidden]> wrote:
> What is the official boost macro to determine endianess?
> And what is the header to include to get it?
>
> I cannot find any help in the documentation of boost.endian but I can
> find those macros by grepping in boost:
>
> BOOST_LITTLE_ENDIAN, BOOST_BIG_ENDIAN, BOOST_ENDIAN_BIG_BYTE,
> BOOST_ENDIAN_BIG_WORD, BOOST_ENDIAN_LITTLE_BYTE,
> BOOST_ENDIAN_LITTLE_WORD, BOOST_PDP_ENDIAN

Shouldn't functions from the endian lib be used?

-- 
Olaf

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