22 Sep
2019
22 Sep
'19
6:54 p.m.
Dear Vladimir, On 10.09.19 12:19, Vladimir V. Kisil wrote:
Thanks for commenting on the previous patch, I appreciate the point on preserving return values of public methods.
I am attaching an another patch using an additional method. It is as close to the standard checks (it != list.end()) as I can imagine.
I'm having trouble with your patches. I tried the sample program you sent initially. Without any patch applied, it prints: {1,2} {3} {1} With your first patch applied, it prints: {1,2,1} {3,{1,2,1}} {1} With your second patch applied, it prints: {1,2} {3} {1} Shouldn't it print {1,2} {3} {} when it's patched? Am I doing something wrong? -richy.