aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/bitset
diff options
context:
space:
mode:
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>2020-12-15 19:32:29 -0500
committerArthur O'Dwyer <arthur.j.odwyer@gmail.com>2021-01-06 18:23:50 -0500
commit781c476ce09ed983477885e33b8acbb2220ad3a1 (patch)
treedf110add2cbc1411dd67752014f5a1e15c98b322 /libcxx/include/bitset
parent6d94eeadd28af4d488b5875778a3ebfa0d749b52 (diff)
downloadllvm-781c476ce09ed983477885e33b8acbb2220ad3a1.zip
llvm-781c476ce09ed983477885e33b8acbb2220ad3a1.tar.gz
llvm-781c476ce09ed983477885e33b8acbb2220ad3a1.tar.bz2
[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
Diffstat (limited to 'libcxx/include/bitset')
-rw-r--r--libcxx/include/bitset2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/bitset b/libcxx/include/bitset
index b0340b8..00503fe 100644
--- a/libcxx/include/bitset
+++ b/libcxx/include/bitset
@@ -990,7 +990,7 @@ inline
size_t
bitset<_Size>::count() const _NOEXCEPT
{
- return static_cast<size_t>(__count_bool_true(base::__make_iter(0), _Size));
+ return static_cast<size_t>(_VSTD::__count_bool_true(base::__make_iter(0), _Size));
}
template <size_t _Size>