On 5/11/21 12:57 PM, Andrei Alexandrescu wrote:
>
> template FloatingPointTypeOf(T) {
> static if (isIntegral!T) {
> alias FloatingPointTypeOf = T;
> } else ...
> }
Correx:
template FloatingPointTypeOf(T) {
static if (isIntegral!T) {
alias FloatingPointTypeOf = double;
} else ...
}