This got me pretty recently... TrailingObjects cannot be copied or
moved, since they need to be pre-allocated. This patch deletes the copy
and move operations (plus re-adds the default ctor).
Differential Revision: https://reviews.llvm.org/D97324
return sizeof(BaseTy) + ParentType::additionalSizeToAllocImpl(0, Counts...);
}
+ TrailingObjects() = default;
+ TrailingObjects(const TrailingObjects &) = delete;
+ TrailingObjects(TrailingObjects &&) = delete;
+ TrailingObjects &operator=(const TrailingObjects &) = delete;
+ TrailingObjects &operator=(TrailingObjects &&) = delete;
+
/// A type where its ::with_counts template member has a ::type member
/// suitable for use as uninitialized storage for an object with the given
/// trailing object counts. The template arguments are similar to those