add static_assert check

Signed-off-by: yayanyang <yayanyang@gmail.com>