Commit graph

2 commits

Author SHA1 Message Date
Jonathan M Davis
34ff27e58d 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.
2024-04-09 09:08:12 +02:00
H. S. Teoh
9091b16f5c Add unittest.
Needs to be a standalone module because the problem does not show up
within std.range itself.
2017-08-11 08:48:23 -07:00