diff --git a/luna/include/luna/Alloc.h b/luna/include/luna/Alloc.h index 9985d363..fc89132f 100644 --- a/luna/include/luna/Alloc.h +++ b/luna/include/luna/Alloc.h @@ -3,9 +3,9 @@ #include #include -template Result make() +template Result make(Args... args) { - T* const result = new T; + T* const result = new T(args...); if (!result) return err(ENOMEM); return result; }