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 */)