I am writing a template class and trying to write a template public function in the class that can generate random data, but I am stuck because I think different data type's random data generator is different... So my question is how can I write a template random data generator function in a template class? Is it possible? (I think it is possible but can't figure it out)
Aucun commentaire:
Enregistrer un commentaire