template magic

spir denis.spir at gmail.com
Tue Jan 25 09:19:02 PST 2011


On 01/25/2011 06:03 PM, Simen kjaeraas wrote:
>
> Of course, given a non-template function, it is impossible to safely
> pass a function to it.

Dont you count this as typesafe function passing?
	void writeRounding (int function (float) roundingScheme) {...}

Denis
-- 
_________________
vita es estrany
spir.wikidot.com



More information about the Digitalmars-d-learn mailing list