From 946491489e967f847f9742a349ca410cb0f22c13 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Sat, 1 Apr 2023 12:06:39 +0200 Subject: [PATCH] added workaround for lack of std::is_trivially_constructible in GCC<5.0 --- include/boost/unordered/detail/foa/core.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/foa/core.hpp b/include/boost/unordered/detail/foa/core.hpp index a7e73c85..b7c546c1 100644 --- a/include/boost/unordered/detail/foa/core.hpp +++ b/include/boost/unordered/detail/foa/core.hpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -941,7 +942,14 @@ struct table_arrays initialize_groups( arrays.groups,groups_size, std::integral_constant< - bool,std::is_trivially_constructible::value>{}); + bool, +#if BOOST_WORKAROUND(BOOST_LIBSTDCXX_VERSION,<50000) + /* std::is_trivially_constructible not provided */ + boost::has_trivial_constructor::value +#else + std::is_trivially_constructible::value +#endif + >{}); arrays.groups[groups_size-1].set_sentinel(); } return arrays;