Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Test & operator = (const Test& other)
- {
- if(this != & other)
- {
- if(other.dataRowsLength > 0)
- {
- DataTable* newRows = new DataTable[other.dataRowsLength];
- copy(other.dataRows, other.dataRows + other.dataRowsLength, newRows);
- delete[] dataRows;
- dataRowsLength = other.dataRowsLength;
- dataRows = newRows;
- }
- else
- {
- delete[] dataRows;
- }
- }
- return * this;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement