Skip to content

Commit

Permalink
Merge pull request #4922 from ntrel/to-empty-args
Browse files Browse the repository at this point in the history
Really fix Issue 16478 - Don't allow to!T() in constraint
  • Loading branch information
schveiguy committed Nov 25, 2016
2 parents 6a059e7 + b46ca98 commit bad369c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/conv.d
Expand Up @@ -167,7 +167,7 @@ $(I UnsignedInteger):
template to(T)
{
T to(A...)(A args)
if (A.length != 1 || !isStaticArray!(A[0]))
if (A.length > 0)
{
return toImpl!T(args);
}
Expand Down

0 comments on commit bad369c

Please sign in to comment.