[Solved] C++ Pointer arithmetic. No Operator “+” Matches these operands


First of all, in code you have provided I do not see operator +, so compiler is absolutely right.

The second point I do not understand is *(clsOriginalToCopy + lngIndex) expression… What your operator + should return? Pointer? Why not reference (considering your operator =)?

Try to redesign your class, perhaps operator + is not really needed and only some changes in DeepCopy implementation will resolve the issue

solved C++ Pointer arithmetic. No Operator “+” Matches these operands