mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-28 13:19:48 +01:00
Remove dependency on <cassert>
This commit is contained in:
@@ -220,7 +220,9 @@ inline Dest bit_cast(const Source& source) {
|
||||
|
||||
inline bool is_big_endian() {
|
||||
auto u = 1u;
|
||||
struct bytes { char data[sizeof(u)]; };
|
||||
struct bytes {
|
||||
char data[sizeof(u)];
|
||||
};
|
||||
return bit_cast<bytes>(u).data[0] == 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user