Signature conditions

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Feb 10 10:28:03 PST 2012


I'm trying to write a parametrized class with a type parameter whose
existence depends on whether std.utf.decode() exists for that type.
What's the syntax to do this?

	class C(T)
		if ( /* ??? exists(decode(T)...?) */ )
	{ ... }

Thanks!


T

-- 
It is not the employer who pays the wages. Employers only handle the
money. It is the customer who pays the wages. -- Henry Ford


More information about the Digitalmars-d-learn mailing list