summaryrefslogtreecommitdiffhomepage
path: root/serialize/packbits-write.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-18 17:59:14 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-18 17:59:14 +0100
commit5b753ed3b632072697bdbf6912ccefcc6a22f4d0 (patch)
treed0174a6a21ff5c4e2374dce23cb1dbc07262c61f /serialize/packbits-write.hpp
parent68351c6de75ee4ca835c57b223335c6df4f6a9d0 (diff)
a
Diffstat (limited to 'serialize/packbits-write.hpp')
-rw-r--r--serialize/packbits-write.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/serialize/packbits-write.hpp b/serialize/packbits-write.hpp
index 234b1632..12e202ac 100644
--- a/serialize/packbits-write.hpp
+++ b/serialize/packbits-write.hpp
@@ -62,7 +62,7 @@ constexpr CORRADE_ALWAYS_INLINE T write_(const Tuple&, output<T, Capacity, Left>
namespace floormat {
template<std::unsigned_integral T, size_t... Sizes>
-constexpr T pack_write(const std::tuple<Pack_impl::output_field<T, Sizes>...>& tuple)
+[[nodiscard]] constexpr T pack_write(const std::tuple<Pack_impl::output_field<T, Sizes>...>& tuple)
{
constexpr size_t nbits = sizeof(T)*8;
return Pack_impl::write_(tuple, Pack_impl::output<T, nbits, nbits>{T{0}}, make_reverse_index_sequence<sizeof...(Sizes)>{});