[PATCH] [libcxx] Fix PR 22468 - std::function<void()> does not accept non-void-returning functions

Marshall Clow mclow.lists at gmail.com
Mon Feb 9 16:46:27 PST 2015


I tried applying this change and running the tests under C++03, and there's a lot of failures due to the file `support/count_new.hpp` using C++11 features.


================
Comment at: test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_F.pass.cpp:87
@@ -87,2 +87,2 @@
     std::function<void(int)> fun = std::bind(&Foo::bar, &f, std::placeholders::_1);
     fun(10);
----------------
While you're here, can you wrap this test in an `#if  __cplusplus >= 201103L` so that this test will pass on C++03?

No `std::bind` in '03

http://reviews.llvm.org/D7444

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list