mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
Make constraint for toImpl
with radix clearer
`parse` with radix requires isIntegral!T.
This commit is contained in:
parent
4aaffede52
commit
d402b50d0f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue