Sure- the easiest is where you try to call a std::function that’s empty.
int main() {
std::function<int()> intfunc;
int x = intfunc(); // BAD
}
Sure- the easiest is where you try to call a std::function that’s empty.
int main() {
std::function<int()> intfunc;
int x = intfunc(); // BAD
}