
3 Dec
2009
3 Dec
'09
8:54 a.m.
Typeof works, but I'm wondering if it's overkill and that perhaps common_type is much more lightweight and appropriate. promote_args doesn't do quite what I need here, but thank you for pointing that facility out to me.
The only version of common_type I've seen uses typeof internally, so doesn't actually differ from your existing implementation - other than having a cute interface. Just my 2c, John.