From 1d99854979841bb7a74843e7ec00c2c238e690d0 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Mon, 7 Nov 2022 17:41:47 +0100 Subject: [PATCH] worked around missing std::is_trivially_copy_constructible in GCC<=4.9 --- include/boost/unordered/detail/foa.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index cbf81a84..2376c8c6 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -1528,7 +1529,15 @@ private: copy_elements_array_from( x, std::integral_constant< - bool,std::is_trivially_copy_constructible::value>{}); + bool, +#if BOOST_WORKAROUND(BOOST_LIBSTDCXX_VERSION,<50000) + /* std::is_trivially_copy_constructible not provided */ + boost::has_trivial_copy::value +#else + std::is_trivially_copy_constructible::value +#endif + >{} + ); } void copy_elements_array_from(const table& x,std::true_type /* -> memcpy */)