[ox/std] Give AllocAlias separate size option

(synced from d53430abbc)
This commit is contained in:
2019-07-24 07:58:52 -05:00
parent 3bb40ba22b
commit eef0c76c6d
+2 -2
View File
@@ -61,9 +61,9 @@ namespace ox {
* Aliases type T in size and alignment to allow allocating space for a T
* without running the constructor.
*/
template<typename T>
template<typename T, std::size_t sz = sizeof(T)>
struct alignas(alignof(T)) AllocAlias {
char buff[sizeof(T)];
char buff[sz];
};