I am trying to return a std::function<int()> myFunction
like so:
std::function < int() > getFunction ()
{
return storedFunction;
}
but I am receiving the compiling error:
C2338: "Type has to implement operator<< to be printable"
.
Is there a way to return a std::function, or is there another way I should be going about returning a std::function?
Aucun commentaire:
Enregistrer un commentaire