jeudi 27 octobre 2016

Pointers to function in c++

Considering the basic syntax

void (*foo)(int);
func_pointer = foo;

Are pointers to function considered a bad practice? If no , what is the real world usage for this.

Aucun commentaire:

Enregistrer un commentaire