[Bug libstdc++/83607] std::boyer_moore_searcher is slow searching through arrays of std::byte

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 28 13:23:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83607

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Bad example, because the BM searcher uses std::equal_to<void>, not
std::equal_to<E>, but overloading operator==(E, E) would still break the
searcher if it used the array optimization for enum E.


More information about the Gcc-bugs mailing list