diff options
Diffstat (limited to 'libbuild2/scheduler.hxx')
-rw-r--r-- | libbuild2/scheduler.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libbuild2/scheduler.hxx b/libbuild2/scheduler.hxx index c34d41b..b579d80 100644 --- a/libbuild2/scheduler.hxx +++ b/libbuild2/scheduler.hxx @@ -7,7 +7,8 @@ #include <list> #include <tuple> #include <atomic> -#include <type_traits> // aligned_storage, etc +#include <cstddef> // max_align_t +#include <type_traits> // decay, etc #include <libbuild2/types.hxx> #include <libbuild2/utility.hxx> @@ -681,7 +682,7 @@ namespace build2 // struct task_data { - std::aligned_storage<sizeof (void*) * 8>::type data; + alignas (std::max_align_t) unsigned char data[sizeof (void*) * 8]; void (*thunk) (scheduler&, lock&, void*); }; |