Are const and & ignored in std::function?

Viewed 1386

Why does this code compile?

std::function<void(const int&)> f = [](int a)
{

};

Aren't int and const int& different types?

2 Answers
Related