Make constraint for toImpl with radix clearer

`parse` with radix requires isIntegral!T.
This commit is contained in:
Nick Treleaven 2017-03-14 11:20:12 +00:00 committed by Nick Treleaven
parent 4aaffede52
commit d402b50d0f

View file

@ -1815,7 +1815,7 @@ if (isInputRange!S && isSomeChar!(ElementEncodingType!S) &&
/// ditto
private T toImpl(T, S)(S value, uint radix)
if (isInputRange!S && !isInfinite!S && isSomeChar!(ElementEncodingType!S) &&
!isExactSomeString!T && is(typeof(parse!T(value, radix))))
isIntegral!T && is(typeof(parse!T(value, radix))))
{
scope(success)
{