This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
No, because not all enumeration types behave like the integers:

enum E : unsigned char { };

namespace std {
  template<> struct equal_to<E> {
    bool operator()(E l, E r) const noexcept {
      return ((unsigned)l % 16) == ((unsigned)r % 16);
    }
  };
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]