From a7f26a8ac70fc968b4b59816abcab1fc958ffa8e Mon Sep 17 00:00:00 2001 From: e10s Date: Sun, 28 Dec 2014 23:33:25 +0900 Subject: [PATCH] Disable to!String(infiniteRange) --- std/conv.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {