Writing a custom sort function

Ruslan Zasukhin sunshine at public.kherson.ua
Tue Jun 24 20:50:41 CDT 2003


on 6/24/03 19:36, Arthur Clemens at aclemens at xs4all.nl wrote:

>> It seems you need define or call default ctor.
>> Or you have not pass parameter to FBL_ArraySet();
>> 
>> You have not show your code in cpp file..
> 
> 
> 
> UniSortArraySet::UniSortArraySet(FBL_BitSet& inSet ) {
>    InitSelf( inSet.GetBits_1_Count() );
>    FBL_BitSetIterator iter( inSet );
>    if( iter.FirstBit_1() ) {
>        do {
>            Append( iter.GetPosition() );
>        } while( iter.NextBit_1() );
>        SetSorted( true );
>    }
> }
> 
> I just copied from FBL_ArraySet.cpp. I thought I would not need this,
> as UniSortArraySet inherits from FBL_ArraySet.

I think it should looks as


UniSortArraySet::UniSortArraySet(FBL_BitSet& inSet )
    : FBL_ArraySet( inSet )
{
}



-- 
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
-------------------------------------------------------------



More information about the Valentina mailing list