mirror of
https://github.com/dlang/phobos.git
synced 2025-05-10 14:08:32 +03:00
Disable to!String(infiniteRange)
This commit is contained in:
parent
629c4be3db
commit
a7f26a8ac7
1 changed files with 1 additions and 1 deletions
|
@ -819,7 +819,7 @@ $(UL
|
||||||
T toImpl(T, S)(S value)
|
T toImpl(T, S)(S value)
|
||||||
if (!(isImplicitlyConvertible!(S, T) &&
|
if (!(isImplicitlyConvertible!(S, T) &&
|
||||||
!isEnumStrToStr!(S, T) && !isNullToStr!(S, T)) &&
|
!isEnumStrToStr!(S, T) && !isNullToStr!(S, T)) &&
|
||||||
isExactSomeString!T)
|
!isInfinite!S && isExactSomeString!T)
|
||||||
{
|
{
|
||||||
static if (isExactSomeString!S && value[0].sizeof == ElementEncodingType!T.sizeof)
|
static if (isExactSomeString!S && value[0].sizeof == ElementEncodingType!T.sizeof)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue