[GiNaC-devel] Archiving an empty container
    Richard B. Kreckel 
    kreckel at in.terlu.de
       
    Sun Sep 22 18:54:10 CEST 2019
    
    
  
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.
    
    
More information about the GiNaC-devel
mailing list