[Issue 24415] only doesn't work with elements that have a copy constructor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 26 19:31:02 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24415

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@jmdavis created dlang/phobos pull request #8924 "Fix bugzilla issue 24415 -
only doesn't work with elements with a copy constructor." fixing this issue:

- Fix bugzilla issue 24415 - only doesn't work with elements with a copy
constructor.

  I have no clue why anyone would have made a copy constructor private,
  but making the copy constructor private on OnlyResult makes it useless
  for anything outside of std.range.package, making only useless with
  elements that have a copy constructor.

  So, this commit makes it so that the copy constructor is no longer
  private.

https://github.com/dlang/phobos/pull/8924

--


More information about the Digitalmars-d-bugs mailing list