I'm trying to pass this auto function to another function, but apparently I can't pass an auto type, so can I change it to whatever the type actually is in order to pass it? By googling I read that you can use templates, but we didn't go over them in my class yet so I'd rather find a more beginner way of doing it if there is one.
std::uniform_int_distribution<int> yPosition(lowBounds, 23);
auto randY = std::bind(yPosition, std::ref(engine));
void my_function(??? randY)
{
}
Aucun commentaire:
Enregistrer un commentaire