problem with std.range.choose()

Johannes Loher via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Feb 20 02:18:27 PST 2016


On Wednesday, 17 February 2016 at 01:35:34 UTC, Johannes Loher 
wrote:
> Hello, I have a problem with using std.range.choose():
>
> When using std.range.choose() on a range R, for which 
> hasElaborateCopyConstructor!R is true, then a postblit for the 
> result of std.range.choose() is created, which includes a call 
> to R.__postblit(). However, hasElaborateCopyConstructor!R may 
> be true, even if R does not define this(this), for example in 
> the case that one of the members of R does so.
>
> [...]

Well, has anybody got an idea if this behaviour is intended? Is 
it a bug?


More information about the Digitalmars-d-learn mailing list