No we should not support enum types derived from strings

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue May 11 16:58:16 UTC 2021


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 ...
}



More information about the Digitalmars-d mailing list