FBL_Deleter

Arthur Clemens aclemens at xs4all.nl
Tue Dec 2 00:43:47 CST 2003


That raises also a new question: in what situations should I use

FBL_Deleter<FBL_BitSet> Killer(set);

Or, when not to use it.

Arthur





>
> But I think it is still not so simple.
>
> May happens that SOMETIMES you must delete.
>
> For example, you MUST delete mShownSet if you DID NOT send it to Sort.
>
> I think you need do something as:
>
>
>      selection = obj.GetMeShownSet()
>                 {
>                     tmp = mShownSet;
>                     mShownSet = NULL;
>                     return tmp;
>                 }
>
>
> You must call this when you going send selection to Sort().
> So your second object already NOT point to this selection.
>
> After sort you assign new selection.
>
>
>> Thanks for the help.
>
> -- 
> Best regards,
> Ruslan Zasukhin      [ I feel the need...the need for speed ]
> -------------------------------------------------------------
> e-mail: ruslan at paradigmasoft.com
> web: http://www.paradigmasoft.com
>
> To subscribe to the Valentina mail list go to:
> http://lists.macserve.net/mailman/listinfo/valentina
> -------------------------------------------------------------
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>


More information about the Valentina mailing list