Thread overview
[Issue 17264] uniq fails with const elements
[Issue 17264] [REG2.073] uniq fails with const elements
March 18
https://issues.dlang.org/show_bug.cgi?id=17264

--- Comment #1 from elpenguino+D@gmail.com ---
Elements with a disabled default constructor fail similarly.

struct NoDefault {
  int i;
  @disable this();
  this(int x) { i = x; }
}

NoDefault[] var = [NoDefault(0), NoDefault(1), NoDefault(1), NoDefault(2)];
assert(var.uniq.equal([NoDefault(0), NoDefault(1), NoDefault(2)]));

results in

std\algorithm\iteration.d(4912): Error: field _back must be initialized in
constructor

--
May 06
https://issues.dlang.org/show_bug.cgi?id=17264

Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow@gmail.com
            Summary|uniq fails with const       |[REG2.073] uniq fails with
                   |elements                    |const elements

--- Comment #2 from Vladimir Panteleev <thecybershadow@gmail.com> ---
Introduced in https://github.com/dlang/phobos/pull/4961

--
May 10
https://issues.dlang.org/show_bug.cgi?id=17264

--- Comment #3 from github-bugzilla@puremagic.com ---
Commit pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/113502af744fb82d68e8f51fd73831b628dcc1eb std.algorithm.iteration: Add test for issue 17264

Fixes Issue 17264 - [REG2.073] uniq fails with const elements

--