Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
2 answers
209 views

function overloading with std::function and generic lambdas: std::string preferred over int

When trying to compiling this, suprisingly, it gives an error because the auto parameter of the lambda function has been resolved to std::string, and the compiler doesn't know how to convert std::...
ABu's user avatar
  • 12.2k