Disable to!String(infiniteRange)

This commit is contained in:
e10s 2014-12-28 23:33:25 +09:00
parent 629c4be3db
commit a7f26a8ac7

View file

@ -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)
{