[PATCH] D37104: [libc++] PR34298: Change std::function constructor and move assignment operator SFINAE checks to allow std::function with an incomplete return type

Marshall Clow via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 31 09:39:44 PDT 2017


mclow.lists added inline comments.


================
Comment at: test/libcxx/utilities/function.objects/func.require/incomplete_return_type.pass.cpp:22
+int main() {
+  return 0;
+}
----------------
Is copy constructible; can be instantiated.

     static_assert( std::is_copy_constructible<IncompleteReturnType>::value, "" );
     IncompleteReturnType ir;
     assert( ir.fn == nullptr );



Repository:
  rL LLVM

https://reviews.llvm.org/D37104





More information about the cfe-commits mailing list