From d53430abbc3c442677dc9bf308c5ba5647967354 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 24 Jul 2019 07:58:52 -0500 Subject: [PATCH] [ox/std] Give AllocAlias separate size option --- deps/ox/src/ox/std/types.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/ox/src/ox/std/types.hpp b/deps/ox/src/ox/std/types.hpp index abaea5fe..98f110e9 100644 --- a/deps/ox/src/ox/std/types.hpp +++ b/deps/ox/src/ox/std/types.hpp @@ -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 +template struct alignas(alignof(T)) AllocAlias { - char buff[sizeof(T)]; + char buff[sz]; };