SwapStrategy issues again...

Brian Myers bmyers at harryanddavid.com
Tue Apr 29 13:07:04 PDT 2008


Argh, sorry, meant this to be a new topic post. I'll try again.

Brian Myers Wrote:

> I'm getting the following error messages now. Does SwapStrategy have to be specified at compile time?
> 
> C:\Documents and Settings\dag033\D\d_dedup>dmd -g d_dedup.d ..\d_libcsv\d_libcsv.d ..\d_libcsv\csv.d ..\d_libcsv\bin\deb
> ug\d_libcsv.lib
> c:\dmd\bin\..\src\phobos\std\algorithm.d(2632): Error: expression ss == cast(SwapStrategy)0 is not constant or does not
> evaluate to a bool
> c:\dmd\bin\..\src\phobos\std\algorithm.d(2655): static assert  (ss != cast(SwapStrategy)1) is not evaluatable at compile
>  time
> 
> Here's the call to schwartzSort!:
> 
> protected:
>     SwapStrategy ss;
> .
> .
> .
> schwartzSort!(kx.get_key, "a < b", ss)(lines);
> 
> Thanx
> 
> Brian
> 




More information about the Digitalmars-d mailing list