Timeline for Checking endianness at compile-time
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 21, 2018 at 8:04 | comment | added | Daniel Langr |
In C++20, you can use std::endian : wandbox.org/permlink/3FkeNpZx5Ix4PbdP.
|
|
May 5, 2016 at 22:15 | answer | added | ajv | timeline score: 2 | |
Mar 29, 2014 at 18:06 | comment | added | icdae | @Loki I would rather not use Boost since this is also a personal exercise in learning how different computers process their data. Although if it was for production code then Boost would definitely not be a bad idea. | |
Mar 29, 2014 at 18:04 | history | edited | icdae | CC BY-SA 3.0 |
Tried another solution
|
Mar 29, 2014 at 17:56 | comment | added | Loki Astari |
Or #include <boost/predef/detail/endian_compat.h> and then test for BOOST_LITTLE_ENDIAN or BOOST_BIG_ENDIAN or BOOST_PDP_ENDIAN
|
|
Mar 29, 2014 at 17:42 | answer | added | barak manos | timeline score: 2 | |
Mar 29, 2014 at 8:56 | history | edited | icdae | CC BY-SA 3.0 |
added 820 characters in body
|
Mar 29, 2014 at 7:57 | answer | added | Apprentice Queue | timeline score: 4 | |
Mar 29, 2014 at 7:29 | history | edited | 200_success |
edited tags; edited tags
|
|
Mar 29, 2014 at 6:34 | history | asked | icdae | CC BY-SA 3.0 |