https://issues.dlang.org/show_bug.cgi?id=24142
Issue ID: 24142
Summary: Allow casting Int128 to integral and floating types
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: [email protected]
Reporter: [email protected]
Currently Unsupported:
---
import std.int128;
int fun1(Int128 a)
{
return cast(int) a;
}
double fun2(Int128 a)
{
return cast(double) a;
}
---
Error: template instance `opCast!int` does not match template declaration
`opCast(T : bool)()`
Error: template instance `opCast!double` does not match template declaration
`opCast(T : bool)()`
--