llvm-capstone/libcxx
Ilya Biryukov 374f938fe8 [libcxx] Fix allocator<void>::pointer in C++20 with removed members
When compiled with `-D_LIBCPP_ENABLE_CXX20_REMOVED_ALLOCATOR_MEMBERS`
uses of `allocator<void>::pointer` resulted in compiler errors after D104323.
If we instantiate the primary template, `allocator<void>::reference` produces
an error 'cannot form references to void'.

To workaround this, allow to bring back the `allocator<void>` specialization by defining the new `_LIBCPP_ENABLE_CXX20_REMOVED_ALLOCATOR_VOID_SPECIALIZATION` macro.

To make sure the code that uses `allocator<void>` and the removed members does not break,
both `_LIBCPP_ENABLE_CXX20_REMOVED_ALLOCATOR_MEMBERS` and `_LIBCPP_ENABLE_CXX20_REMOVED_ALLOCATOR_MEMBERS` have to be defined.

Reviewed By: ldionne, #libc, philnik

Differential Revision: https://reviews.llvm.org/D126210
2022-06-15 10:55:56 +02:00
..
benchmarks [libc++][format] Implement format-string. 2022-06-11 15:25:56 +02:00
cmake [libcxx][AIX] Switch build compiler to clang 2022-06-13 21:45:18 -04:00
docs [libcxx] Fix allocator<void>::pointer in C++20 with removed members 2022-06-15 10:55:56 +02:00
include [libcxx] Fix allocator<void>::pointer in C++20 with removed members 2022-06-15 10:55:56 +02:00
lib [libcxx][AIX] Enable ABI list checking for XCOFF 2022-06-14 13:16:00 -04:00
src [libc++] Do not yield from __sp_mut::lock() 2022-06-13 11:48:13 -04:00
test [libcxx] Fix allocator<void>::pointer in C++20 with removed members 2022-06-15 10:55:56 +02:00
utils [libcxx][AIX] Enable ABI list checking for XCOFF 2022-06-14 13:16:00 -04:00
.clang-format [libcxx] Remove extraneous '---' lines in .clang-format files 2022-06-15 01:34:37 -07:00
.clang-tidy [libc++] Enable modernize-loop-convert 2022-03-18 20:34:19 +01:00
.gitignore
appveyor-reqs-install.cmd
appveyor.yml
CMakeLists.txt [libcxx][AIX] Switch build compiler to clang 2022-06-13 21:45:18 -04:00
CREDITS.TXT Microsoft's floating-point to_chars powered by Ryu and Ryu Printf 2021-12-12 16:34:50 +01:00
LICENSE.TXT
TODO.TXT [libc++] Disallow volatile types in std::allocator 2021-09-22 11:47:38 -04:00