http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52924
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Target Milestone|--- |4.7.1 Summary|Using an std::function |[4.7 Regression] Using an |object as deleter of |std::function object as |shared_ptr in C++0x mode |deleter of shared_ptr in |does not compile |C++0x mode does not compile --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-04-10 10:22:41 UTC --- The problem is that std::function::~function should be noexcept, but isn't because PR 50043 is not fixed on the 4.7 branch I'll fix it by adding a noexcept destructor to _Sp_counted_deleter and/or _Sp_counter_deleter::_My_deleter