std::function

Why does std::function require that its function object be copy constructable? I wrote a custom version of std::function via my own type erasure classes the other day, and it works on functions that can only be moved as well (such as std::packaged_task). Why doesnt std::function allow this?
Topic archived. No new replies allowed.