[email protected]>
>> Cc: [email protected]
>> Subject: Re: [Gnucap-devel] Gnucap Integrated waveform displayer
>
> Message: 3
> Copying a wave:
>
> // get a pointer to the wave, as you do now.
> WAVE* w = find_wave();
>
> // returns NULL if it fails, (I need to change this)
> if (w) {
>
> // now copy it into a local
> WAVE wcopy(*w);
>
> // or copy it to something that remains after the function exits
> WAVE* wcopyptr(new WAVE(*w));
>
> // handle when find_wave fails
> }else{untested();
> }
>
Will try this out to replace existing structure.
_______________________________________________
Gnucap-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnucap-devel