[Issue 11603] std.algorithm.canFind does not work when needle is 1-byte zero
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Dec  3 23:23:00 PST 2013
    
    
  
https://d.puremagic.com/issues/show_bug.cgi?id=11603
Kenji Hara <k.hara.pg at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|DMD                         |Phobos
            Summary|Refused                     |std.algorithm.canFind does
                   |std.algorithm.canFind on an |not work when needle is
                   |array of enums              |1-byte zero
         OS/Version|Windows                     |All
--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2013-12-03 23:22:56 PST ---
(In reply to comment #2)
> I think the problem is not yet solved, see:
> 
> 
> void main() {
>     import std.algorithm: canFind;
>     enum Foo : ubyte { A }
>     assert([Foo.A].canFind(Foo.A));
> }
This is a Phobos regression caused by:
https://github.com/D-Programming-Language/phobos/pull/1492
I commented about the bug on github.
https://github.com/D-Programming-Language/phobos/pull/1492/files#r8087442
Reused this issue number for the Phobos bug, and changed the summary.
-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list