Can I have a declaration in C++ like myFunction(void *x, void *y)?
I have a (big) project with this declaration, looks like it works, but I don’t understand how can I have a “void” as parameter type. Would it be the same as just myFunction(*x, *y)?
You don’t have a
voidparameter type, but avoid*– a pointer-to-void. Any pointer can be implicitly converted to a pointer-to-void, but you can’t do anything useful with avoid*alone. What does the definition of one of those functions look like?