[all-commits] [llvm/llvm-project] 8456e0: [ADT] Allow std::next to work on BitVector's set_b...

Jay Foad via All-commits all-commits at lists.llvm.org
Tue Feb 13 03:03:32 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8456e0c290f759807023924481712767a19464c2
      https://github.com/llvm/llvm-project/commit/8456e0c290f759807023924481712767a19464c2
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2024-02-13 (Tue, 13 Feb 2024)

  Changed paths:
    M llvm/include/llvm/ADT/BitVector.h
    M llvm/unittests/ADT/BitVectorTest.cpp

  Log Message:
  -----------
  [ADT] Allow std::next to work on BitVector's set_bits_iterator (#80830)

Without this I would hit errors with libstdc++-12 like:

/usr/include/c++/12/bits/stl_iterator_base_funcs.h:230:5: note:
candidate template ignored: substitution failure [with _InputIterator =
llvm::const_set_bits_iterator_impl<llvm::BitVector>]: argument may not
have 'void' type
    next(_InputIterator __x, typename
    ^




More information about the All-commits mailing list