This is the output from the main code (particularly adding the two sets together)
The first set is null, and the second set just has one string.
strSet tempSet;
strSet tempSet2("a") <--- a string "a"
tempSet = tempSet + tempSet2; :
TempDelete head address: 0xda00b0
tempDelete address: 0xda00b0
tempDelete node : 0xda00d0
tempDelete address: 0xda00d0
tempDelete node : 0
rtList head address: 0xda00f0
rtList head address: 0xda00f0
rtList address: 0xda0110
rtList value :
rtList address: 0xda0130
rtList value : a
rtList address: 0xda0150
rtList value :
rtList address: 0xda0170
rtList value : a
rtList address: 0xda0190
rtList value :
rtList address: 0xda01b0
rtList value : a
rtList address: 0xda01d0
rtList value :
rtList address: 0xda01f0
rtList value : a
rtList address: 0xda0210
rtList value :
rtList address: 0xda0230
rtList value : a
My main question is, why does the object that I am returning have a finite linkedList, yet the same one I pass through the = operator as a parameter, has an infinite linkedList?