diff --git a/include/flatbuffers/flatbuffers.h b/include/flatbuffers/flatbuffers.h index 198f7efc8..f89c4d62a 100644 --- a/include/flatbuffers/flatbuffers.h +++ b/include/flatbuffers/flatbuffers.h @@ -820,10 +820,7 @@ FLATBUFFERS_FINAL_CLASS template void AssertScalarT() { #ifndef FLATBUFFERS_CPP98_STL // The code assumes power of 2 sizes and endian-swap-ability. - static_assert(std::is_scalar::value - // The Offset type is essentially a scalar but fails is_scalar. - || sizeof(T) == sizeof(Offset), - "T must be a scalar type"); + static_assert(std::is_scalar::value, "T must be a scalar type"); #endif }