From 81584c22cf74cb314a186804e29403bfd9223cc7 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Mon, 13 Mar 2023 18:33:48 +0100 Subject: [PATCH] swapped member order in alloc_cted_insert_type to suppress padding warnings --- include/boost/unordered/detail/foa/core.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/foa/core.hpp b/include/boost/unordered/detail/foa/core.hpp index cf4fe168..053c8fa1 100644 --- a/include/boost/unordered/detail/foa/core.hpp +++ b/include/boost/unordered/detail/foa/core.hpp @@ -1063,8 +1063,8 @@ class alloc_cted_insert_type emplace_type,typename TypePolicy::element_type >::type; - Allocator al; alignas(insert_type) unsigned char storage[sizeof(insert_type)]; + Allocator al; public: alloc_cted_insert_type(const Allocator& al_,Args&&... args):al{al_}