Probably you want a pointer which points to the minimal data value. In actual fact it's (as usually) senseless operation to compare pointer values. Moreover, the result of pointers comparison is well-defined only if two pointers points to the same array.
If so, compare data values, not pointers. Save pointer value which refers to the minimal data value. Return this pointer - that's all.
Can you post node type definition? It's hard to say more without this info...
Next time use code tag with the language specifier:
[code=cplusplus]
source text
[/code]
Reputation Points: 1234
Solved Threads: 347
Postaholic
Offline 2,001 posts
since Jul 2008