http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57825
--- Comment #7 from Tomasz KamiĆski <tomaszkam at gmail dot com> --- > No, this was a different problem and it became fixed. Your example code > works fine gcc 4.9.0 20130616 (experimental) (I do know this, because I > recently completed the implementation of std::function for gcc) Thank you. I assumed that this is not working also for normal functions.