With the relaxation of constraints on constant expression, is there a way in C++14 to obtain the system endianness at compile-time ?
constexpr bool is_big_endian()
{
// Something here
}
constexpr bool is_little_endian()
{
// Something here
}