5 Apr
2017
5 Apr
'17
1:58 p.m.
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.