diff --git a/std/conv.d b/std/conv.d index 38e0149ea..2fe2c35d4 100644 --- a/std/conv.d +++ b/std/conv.d @@ -819,7 +819,7 @@ $(UL T toImpl(T, S)(S value) if (!(isImplicitlyConvertible!(S, T) && !isEnumStrToStr!(S, T) && !isNullToStr!(S, T)) && - isExactSomeString!T) + !isInfinite!S && isExactSomeString!T) { static if (isExactSomeString!S && value[0].sizeof == ElementEncodingType!T.sizeof) {