folly icon indicating copy to clipboard operation
folly copied to clipboard

fix(folly): Replace __type_pack_element in ForeachTest.cpp for GCC 14 Compatibility

Open ihb2032 opened this issue 4 months ago • 0 comments

This pull request addresses a build failure in folly/container/test/ForeachTest.cpp when compiling with GCC 14. The error is due to the use of the compiler builtin __type_pack_element in function signatures, which is no longer permitted. The fix replaces the problematic use of type_pack_element_t with the standard library equivalent, std::tuple_element_t. This change ensures that the test suite remains compatible with the latest compiler versions without altering the logic of the tests.

ihb2032 avatar Sep 10 '25 09:09 ihb2032