mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
Uncomment Task's disabled copy constructor and remove bug documentation now that full spec NRVO is implemented.
This commit is contained in:
parent
b6386fe467
commit
8875d02c44
1 changed files with 1 additions and 5 deletions
|
@ -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);}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue