diff options
author | Daniel Bertalan <dani@danielbertalan.dev> | 2021-07-01 10:21:14 +0200 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-07-03 01:56:31 +0430 |
commit | 3c6bdb8a6196d16fb90072ee9226cfa35eaf4470 (patch) | |
tree | 9f1545cef4312b0abfd226df536838145b9888b4 /Kernel | |
parent | fda9f394d14cfc077a4d5f2d5ca56d99a429c1e9 (diff) | |
download | serenity-3c6bdb8a6196d16fb90072ee9226cfa35eaf4470.zip |
AK: Make smart pointer factories work with aggregates
Aggregate initialization with brace-enclosed parameters is a
[C++20 feature][1] not yet implemented by Clang. This caused compile
errors if we tried to use the factory functions to create smart pointers
to aggregates.
As a (temporary) fix, [the LWG's previously proposed solution][2] is
implemented by this commit.
Now, wherever it's not possible to direct-initialize, aggregate
initialization is performed.
[1]:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0960r3.html
[2]: http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#2089
Diffstat (limited to 'Kernel')
0 files changed, 0 insertions, 0 deletions