Array[] as optional Parameter ?

 

Hello,

is there a simple way for an empty default value on arrays (of objectpointers) ?

signature:

void funcsname(...., clsName* &ArrayOfObjectPointers[] = ???)  {}   // *NULL[] 


no surprise, this is not working.

But is there a usefull "ZeroPointer" ?


Thanks

 
Abejorro: But is there a usefull "ZeroPointer" ?
NULL, but you can't pass that as an array. Pass a zero length array.
 
You may create two funcsname() with different signatures.
 
As Ovo said, you can overload your function.
Reason: