Report question

Question: When to use std::function instead of inheritance?