Thread overview
[Issue 17264] [REG2.073] uniq fails with const elements
[Issue 17264] uniq fails with const elements
May 06, 2017
Vladimir Panteleev
Jul 03, 2017
Vladimir Panteleev
March 18, 2017
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, 2017
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, 2017
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

--
May 29, 2017
https://issues.dlang.org/show_bug.cgi?id=17264

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

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

--
July 03, 2017
https://issues.dlang.org/show_bug.cgi?id=17264

Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> ---
https://github.com/dlang/phobos/pull/5384 was merged, closing.

--
January 05, 2018
https://issues.dlang.org/show_bug.cgi?id=17264

--- Comment #6 from github-bugzilla@puremagic.com ---
Commit pushed to dmd-cxx at https://github.com/dlang/phobos

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

--