summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2021-08-31 13:16:46 -0400
committer AJR <ajrhacker@users.noreply.github.com>2021-08-31 13:16:46 -0400
commite5cf065ccb57189a4f8ed9cd9bcdf4be3290d516 (patch)
treea911bf00b4ed4d1b98c18ee7213317ea403f0b82
parentccaa00b3ed00d63b4781270c992e00b63811c85d (diff)
endianness.h: Use namespace std::literals
-rw-r--r--src/lib/util/endianness.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/endianness.h b/src/lib/util/endianness.h
index ec9b226ec5a..cef615fcb87 100644
--- a/src/lib/util/endianness.h
+++ b/src/lib/util/endianness.h
@@ -39,7 +39,7 @@ enum class endianness
// MACROS AND INLINE FUNCTIONS
//**************************************************************************
-constexpr std::string_view endian_to_string_view(endianness e) { return e == endianness::little ? "little" : "big"; }
+constexpr std::string_view endian_to_string_view(endianness e) { using namespace std::literals; return e == endianness::little ? "little"sv : "big"sv; }
// endian-based value: first value is if native endianness is little-endian, second is if native is big-endian
#define NATIVE_ENDIAN_VALUE_LE_BE(leval,beval) ((util::endianness::native == util::endianness::little) ? (leval) : (beval))