From 86e998cbc70fc11504e1898a7b73cfdcfc95ae4f Mon Sep 17 00:00:00 2001 From: joaquintides Date: Sat, 18 Mar 2023 16:12:39 +0100 Subject: [PATCH] fixed UB in dummy_group_accesses --- include/boost/unordered/detail/foa/concurrent_table.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/boost/unordered/detail/foa/concurrent_table.hpp b/include/boost/unordered/detail/foa/concurrent_table.hpp index ab9e3a4a..88d31455 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -189,11 +189,10 @@ group_access* dummy_group_accesses() /* TODO: describe */ - static constexpr group_access::dummy_group_access_type + static group_access::dummy_group_access_type storage[Size]={typename group_access::dummy_group_access_type(),}; - return reinterpret_cast( - const_cast(storage)); + return reinterpret_cast(storage); } template