D-Programming-Language/phobos — pull request #1616 by WebDrake (2013-10-05 18:37:05+00:00)
Title: isIntegerLike template needed for David Simcha's std.rational

Unlike std.traits.isIntegral this template checks for "integer-like" properties, i.e. that the type offers all the operations that an integer type should. It can therefore be used to support arbitrary integer implementations, including all built-in integer (and char) types, std.bigint.BigInt, and in principle any user- or library-defined integer type.

Besides the soon-to-be-proposed-for-review std.rational, for which this is a dependency, it ought to be useful for e.g. std.math and std.numeric where one would wish for functions to be designed to work with any integer implementation.

The background discussion on std.rational, including the rationale for this template, can be found here:
http://forum.dlang.org/thread/mailman.1899.1380723964.1719.digitalmars-d@puremagic.com