diff options
author | Jack Lloyd <[email protected]> | 2022-02-06 14:01:22 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2022-02-06 14:01:22 -0500 |
commit | d76a8917b0351979aeb36d4a690392d03aa215a7 (patch) | |
tree | 7811f859d804e1f19d0e33fdc2369d370ba34d4e /src | |
parent | a4b4757de1fb06a9beedf65a5a8ecf9e394d0f1b (diff) |
Use msgless static_assert instead of empty string
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/misc/roughtime/roughtime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/misc/roughtime/roughtime.cpp b/src/lib/misc/roughtime/roughtime.cpp index e953c87be..7b0c6a42b 100644 --- a/src/lib/misc/roughtime/roughtime.cpp +++ b/src/lib/misc/roughtime/roughtime.cpp @@ -36,7 +36,7 @@ struct is_array<std::array<T,N>>:std::true_type{}; template<typename T> T impl_from_little_endian(const uint8_t* t, const size_t i) { - static_assert(sizeof(T) <= sizeof(int64_t), ""); + static_assert(sizeof(T) <= sizeof(int64_t)); return T(static_cast<int64_t>(t[i]) << i * 8) + (i == 0 ? T(0) : impl_from_little_endian<T>(t, i - 1)); } |