https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107784
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jörg Richter from comment #0) > The resulting functor is too big to be stored inline in a std::function. Why wouldn't you just store &Foo::func in the std::function instead?