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;