aboutsummaryrefslogtreecommitdiffstats
path: root/common/flexarray.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/flexarray.h')
-rw-r--r--common/flexarray.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/flexarray.h b/common/flexarray.h
index 3e211f75..b8077988 100644
--- a/common/flexarray.h
+++ b/common/flexarray.h
@@ -43,8 +43,9 @@ struct alignas(std::max(alignment, alignof(al::span<T>))) FlexArrayStorage<T,ali
};
/* A flexible array type. Used either standalone or at the end of a parent
- * struct, with placement new, to have a run-time-sized array that's embedded
- * with its size.
+ * struct, to have a run-time-sized array that's embedded with its size. Should
+ * be used delicately, ensuring there's no additional data after the FlexArray
+ * member.
*/
template<typename T, size_t Align=alignof(T)>
struct FlexArray {