🚨 fix warnings #2113

This commit is contained in:
Niels Lohmann 2020-05-16 14:26:17 +02:00
parent f40a9f876a
commit 28e20bd9e4
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
8 changed files with 47 additions and 20 deletions

View file

@ -32,7 +32,7 @@ namespace detail
@note from https://stackoverflow.com/a/1001328/266378
*/
static bool little_endianess(int num = 1) noexcept
static inline bool little_endianess(int num = 1) noexcept
{
return *reinterpret_cast<char*>(&num) == 1;
}