Uncomment Task's disabled copy constructor and remove bug documentation now that full spec NRVO is implemented.

This commit is contained in:
David Simcha 2011-07-16 16:00:34 -07:00
parent b6386fe467
commit 8875d02c44

View file

@ -403,10 +403,6 @@ pointer.
Bugs: Changes to $(D ref) and $(D out) arguments are not propagated to the
call site, only to $(D args) in this struct.
Copying is not actually disabled yet due to compiler bugs. In the
mean time, please understand that if you copy this struct, you're
relying on implementation bugs.
*/
struct Task(alias fun, Args...) {
// Work around syntactic ambiguity w.r.t. address of function return vals.
@ -656,7 +652,7 @@ struct Task(alias fun, Args...) {
// When this is uncommented, it somehow gets called even though it's
// disabled and Bad Things Happen.
//@disable this(this) { assert(0);}
@disable this(this) { assert(0);}
}