2010/1/28 Patrick Horgan <phorgan1@xxxxxxxxx>: > > But that assumes that operator- returns the same type (possibly signed) as > its arguments. How could you know that? The declspec(T()-T()) would take > the return type of the (possible) operator-, no? > You're right; I am assuming that. I don't know your situation. I do wonder whether even the declspec solution would be sufficient if T used expression templates or other such techniques, though. ~ Scott