Commit ae3ea156 authored by Greg Sjaardema's avatar Greg Sjaardema Committed by Victor Zverovich

Fix for older versions of intel compiler

The intel-17 and intel-18 compilers seem to require that `u` be `const`:
```
/src/fmt/format.h(226): warning #437: reference to local variable of enclosing function is not allowed
        char data[sizeof(u)];
```
If `u` is declared as `const auto u =1u` instead of just `auto u=1u`, the file compiles with no warnings.
parent 77165fdf
...@@ -235,7 +235,7 @@ inline Dest bit_cast(const Source& source) { ...@@ -235,7 +235,7 @@ inline Dest bit_cast(const Source& source) {
} }
inline bool is_big_endian() { inline bool is_big_endian() {
auto u = 1u; const auto u = 1u;
struct bytes { struct bytes {
char data[sizeof(u)]; char data[sizeof(u)];
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment