Header file prototype (.hpp) is giving a g++ compiler error - no matching function type in header file. What it the correct way to write the prototype (or function parameter)? I've tried oh so many combinations...
void myClass( Objects (*)[] );
Implementation file function definition (.cpp)
void myClass::myFunction( Objects *ptr2object_Array ) {
/* do stuff */ }
Looked thoroughly for the answer here and elsewhere... Thanks. Aware of the vector lecture, I'm stuck with an array of object pointers.
std::arrayorstd::vector?Objects (*)[]is not the type of an array of object pointers; it's the type of a pointer to an array of objects.