llvm-project/libcxx/test/std/containers/sequences/array/array.cons
Mark de Wever b8608b8723 [libc++] Use addressof in assignment operator.
Replace `&__rhs` with `_VSTD::addressof(__rhs)` to guard against ADL hijacking
of `operator&` in `operator=`. Thanks to @CaseyCarter for bringing it to our
attention.

Similar issues with hijacking `operator&` still exist, they will be
addressed separately.

Reviewed By: #libc, Quuxplusone, ldionne

Differential Revision: https://reviews.llvm.org/D110852
2021-10-07 18:10:47 +02:00
..
deduct.fail.cpp [libc++][test] Remove disable_missing_braces_warning.h from tests 2021-09-22 16:00:16 -04:00
deduct.pass.cpp [libc++][test] Remove disable_missing_braces_warning.h from tests 2021-09-22 16:00:16 -04:00
implicit_copy.addressof.compile.pass.cpp [libc++] Use addressof in assignment operator. 2021-10-07 18:10:47 +02:00
implicit_copy.pass.cpp [libc++][test] Remove disable_missing_braces_warning.h from tests 2021-09-22 16:00:16 -04:00
initialization.pass.cpp