[Issue 24415] Can't call public function preceded by private template overload

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 26 05:07:41 UTC 2024


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

--- Comment #8 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #8988 "merge stable" was merged into master:

- 34ff27e58d83e7a6135af56af2eb34ba3a6d7252 by Jonathan M Davis:
  Work around bugzilla issue 24415 - only doesn't work with elements with a
copy constructor.

  Since the compiler is treating the auto-generated copy-constructor for
  OnlyResult as private (thus rendering it useless outside of
  std.range.package), this commit adds an explicit one and makes it
  public. Once the dmd bug has been fixed, the explicit copy constructor
  should be removed.

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

--


More information about the Digitalmars-d-bugs mailing list