[Issue 24415] Can't call public function preceded by private template overload
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 9 07:08:18 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24415
--- Comment #6 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #8924 "Work around bugzilla issue 24415 - only
doesn't work with elements with a copy constructor." was merged into stable:
- 66bbf4dae038879d1ff66af3b7ab25ea66c8320d 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/8924
--
More information about the Digitalmars-d-bugs
mailing list