http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56551
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-03-06 16:24:20 UTC --- I've only glanced at the code but it's good to see you support passing an Allocator to the constructor (though it should use std::allocator_traits to support C++11 allocators) I was thinking of making some big changes to our std::function for GCC 4.9 in order to support custom allocators.