https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92546
--- Comment #16 from Jonathan Wakely <redi at gcc dot gnu.org> --- <functional> includes <vector> so std::boyer_moore_searcher can use std::vector, but it doesn't need it at all. Using std::unique_ptr<T[]> would do fine.