mirror of
https://github.com/nlohmann/json.git
synced 2026-10-17 11:38:14 +00:00
simpler endian detection for older gcc versions
This commit is contained in:
1 parent
770ae6e9da
commit
c7282d5b1e
3 files changed
+30
-26
No files matched your search
@@ -1326,7 +1326,7 @@ class binary_writer
|
||||
|
||||
private:
|
||||
/// whether we can assume little endianess
|
||||
const bool is_little_endian = binary_reader<BasicJsonType, input_buffer_adapter>::little_endianess();
|
||||
const bool is_little_endian = little_endianess();
|
||||
|
||||
/// the output
|
||||
output_adapter_t<CharType> oa = nullptr;
|
||||
|
||||
Reference in new issue
Block a user