Skip to content

Commit 46480a7

Browse files
committed
Attempt to workaround problem with static_assert(false) in gcc/clang compilers
1 parent a86a698 commit 46480a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/utils_proto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ namespace fb_utils
300300
else if constexpr (len == sizeof(char))
301301
*ptr = value;
302302
else
303-
static_assert(false, "unknown data type");
303+
static_assert(len == 0, "unknown data type");
304304

305305
ptr += len;
306306
return ptr;

0 commit comments

Comments
 (0)