static check for float type or existence of a function overload

Bill Baxter wbaxter at gmail.com
Wed Oct 25 09:05:17 PDT 2006


Thomas Kuehne wrote:
> 
> is(typeof(Type.epsilon))

> static if(is(typeof(sqrt(Type.init)))){
> 	...
> }

Excellent!  Thanks.
--bb



More information about the Digitalmars-d-learn mailing list