xo-object2: allow 0-capacity DArrays + utest

This commit is contained in:
Roland Conybeare 2026-01-15 17:22:03 -05:00
commit 11365c95ac
3 changed files with 47 additions and 10 deletions

View file

@ -60,6 +60,9 @@ namespace xo {
/** create array containing elements @p args, using memory from @p mm.
* Nullptr if space exhausted.
*
* Use:
* Darray * v = DArray::array(mm, e1, e2, e3);
**/
template <typename... Args>
requires (std::same_as<Args, obj<AGCObject>> && ...)