[all-commits] [llvm/llvm-project] 781c47: [libc++] ADL-proof vector<bool> by adding _VSTD:: ...

Quuxplusone via All-commits all-commits at lists.llvm.org
Wed Jan 6 15:30:57 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 781c476ce09ed983477885e33b8acbb2220ad3a1
      https://github.com/llvm/llvm-project/commit/781c476ce09ed983477885e33b8acbb2220ad3a1
  Author: Arthur O'Dwyer <arthur.j.odwyer at gmail.com>
  Date:   2021-01-06 (Wed, 06 Jan 2021)

  Changed paths:
    M libcxx/include/__bit_reference
    M libcxx/include/__mutex_base
    M libcxx/include/__tree
    M libcxx/include/array
    M libcxx/include/bitset
    M libcxx/include/functional
    M libcxx/include/future
    M libcxx/include/iomanip
    M libcxx/include/mutex
    M libcxx/test/libcxx/containers/sequences/vector/robust_against_adl.pass.cpp

  Log Message:
  -----------
  [libc++] ADL-proof vector<bool> by adding _VSTD:: qualification on calls.

This affects only vectors with weird/malicious allocators,
the same corner case covered in D91708, but for `vector<bool>` this time.

Also ADL-proof <__tree>, which affects only sets and maps with weird/malicious
allocators where the ADL trap is in the *fancy pointer type*.

Also drive-by _VSTD:: qualification in the guts of std::bind,
std::packaged_task, std::condition_variable.

Differential Revision: https://reviews.llvm.org/D93424




More information about the All-commits mailing list