Writing a custom sort function

Arthur Clemens aclemens at xs4all.nl
Tue Jun 24 18:36:49 CDT 2003


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


Arthur


More information about the Valentina mailing list