On Oct 3, 2010, at 12:53 PM, Douglas Gregor wrote: > > On Oct 3, 2010, at 6:59 AM, Howard Hinnant wrote: > >> Author: hhinnant >> Date: Sun Oct 3 08:59:56 2010 >> New Revision: 115461 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=115461&view=rev >> Log: >> Tweak to make clang blocks work with std::functional (very fragile) > > Won't we need _Block_copy calls when putting a block into a std::function, > _Block_dispose when destroying that std::function, etc?
<shrug> I don't know. If so then I would think it unsafe to instantiate any template with a block (not just std::function). Such behavior doesn't follow C++ generic syntax/semantics. -Howard _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
