summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/FileDescription.cpp
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2021-07-01 10:21:14 +0200
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-07-03 01:56:31 +0430
commit3c6bdb8a6196d16fb90072ee9226cfa35eaf4470 (patch)
tree9f1545cef4312b0abfd226df536838145b9888b4 /Kernel/FileSystem/FileDescription.cpp
parentfda9f394d14cfc077a4d5f2d5ca56d99a429c1e9 (diff)
downloadserenity-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/FileSystem/FileDescription.cpp')
0 files changed, 0 insertions, 0 deletions