aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2024-01-02 20:17:48 -0800
committerChris Robinson <[email protected]>2024-01-02 20:17:48 -0800
commit2dacf2ddcc60b21a7ac67d8a020082d8f36d39dd (patch)
tree054e3576d4733a69d12c4b6231db6ffff86ef155 /common
parentb73af9ac52bc9a0c23cfe9165fcc2c0b63fab529 (diff)
Update a comment about FlexArray
Diffstat (limited to 'common')
-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 {