From c55e05c6a3694577a154e8dab6e41fddcc0bb4f1 Mon Sep 17 00:00:00 2001 From: "Zezheng.Li" Date: Tue, 21 Nov 2023 11:55:16 +0800 Subject: [PATCH] fix --- include/ylt/struct_pack/unpacker.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ylt/struct_pack/unpacker.hpp b/include/ylt/struct_pack/unpacker.hpp index 66a6dd697..2be6dc9d2 100644 --- a/include/ylt/struct_pack/unpacker.hpp +++ b/include/ylt/struct_pack/unpacker.hpp @@ -138,7 +138,7 @@ class unpacker { err_code = deserialize_many<8, UINT64_MAX, true>(t, args...); } else { - static_assert(!sizeof(T), "illegal size width"); + return struct_pack::errc::too_width_size; } break; #else