Skip to content

Commit

Permalink
Merge pull request #2469 from 9rnsr/2.066
Browse files Browse the repository at this point in the history
Cherry-picking commits from master to 2.066 branch (for the minor release 2.066.1)
  • Loading branch information
AndrewEdwards committed Aug 27, 2014
2 parents 77ba764 + b80244e commit d8c9d79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions std/parallelism.d
Expand Up @@ -532,9 +532,9 @@ struct Task(alias fun, Args...)
enforce(this.pool !is null, "Job not submitted yet.");
}

private this(Args args)
static if(Args.length > 0)
{
static if(args.length > 0)
private this(Args args)
{
_args = args;
}
Expand Down
7 changes: 5 additions & 2 deletions std/typecons.d
Expand Up @@ -446,9 +446,12 @@ template Tuple(Specs...)
/**
* Constructor taking one value for each field.
*/
this(Types values)
static if (Types.length > 0)
{
field[] = values[];
this(Types values)
{
field[] = values[];
}
}

/**
Expand Down

0 comments on commit d8c9d79

Please sign in to comment.