std.experimental.checkedint is ready for comments!

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 15 00:08:22 PDT 2016


On 6/14/2016 9:57 PM, tsbockman wrote:
> The intent is just as clear this way, and it's less verbose.

Ok. I'd just change the constraint to:

     if (isIntegral!N || isCheckedint!N)

You can do the qualification machinations using a static if inside the template.


More information about the Digitalmars-d mailing list