[all-commits] [llvm/llvm-project] 886e92: [libc++][test] Silence allocator conversion warnings
Casey Carter via All-commits
all-commits at lists.llvm.org
Tue Jan 10 11:21:28 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 886e92c1abf17a98abb9fb7f58bc02028a3f9a7e
https://github.com/llvm/llvm-project/commit/886e92c1abf17a98abb9fb7f58bc02028a3f9a7e
Author: Casey Carter <Casey at Carter.net>
Date: 2023-01-10 (Tue, 10 Jan 2023)
Changed paths:
M libcxx/test/libcxx/containers/sequences/vector/robust_against_adl.pass.cpp
M libcxx/test/std/containers/sequences/vector.bool/ctor_exceptions.pass.cpp
M libcxx/test/std/containers/sequences/vector/vector.cons/exceptions.pass.cpp
Log Message:
-----------
[libc++][test] Silence allocator conversion warnings
... by accepting `std::size_t` instead of `int` in `allocate` and `deallocate` functions.
Drive-by: To conform to the allocator requirements, the `Allocator` types in these tests need to have (1) converting constructors and (2) cross-specialization `==` that returns `true` at least for copies of the same allocator.
Differential Revision: https://reviews.llvm.org/D141334
More information about the All-commits
mailing list