[libcxx-commits] [PATCH] D94452: [libc++] Support immovable return types in std::function.

Arthur O'Dwyer via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jan 21 11:29:47 PST 2021


Quuxplusone updated this revision to Diff 318264.
Quuxplusone added a comment.

Support `std::function<const NonCopyable()>`, and then discover that `std::function<const void()>` wasn't fully supported either. This is now fixed.
However, the unit test for the fix might be unacceptable, because it inevitably triggers `-Wignored-qualifiers` and I can't figure out how to shut it up. @ldionne, any ideas?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94452/new/

https://reviews.llvm.org/D94452

Files:
  libcxx/include/__functional_base
  libcxx/include/functional
  libcxx/include/type_traits
  libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/noncopyable_return_type.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94452.318264.patch
Type: text/x-patch
Size: 6642 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210121/de18d5e6/attachment.bin>


More information about the libcxx-commits mailing list