Why does it think this call to an overloaded function that takes a std::function as an argument is ambiguous?
Here is the code I’m trying to run.
Alternative to std::function that returns object with deleted copy operator
In my code HeavyObjectManager
generates instances of HeavyObject
(which should never be copied), and i tried to make generation itself be customizeable by passing HeavyObjectGenerator
function.