diff --git a/libraries/AP_Common/AP_Common.h b/libraries/AP_Common/AP_Common.h index 954704208e..d6fb0f5890 100644 --- a/libraries/AP_Common/AP_Common.h +++ b/libraries/AP_Common/AP_Common.h @@ -114,10 +114,10 @@ // templates are used for this because the compiler's output will // usually contain details of the template instantiation so you can // see how the actual size differs from the expected size. -template struct _assert_storage_size { +template struct _assert_storage_size { static_assert(s_size == t, "wrong size"); }; -template struct assert_storage_size { +template struct assert_storage_size { _assert_storage_size _member; };