Dnia 31-01-2010 o 20:59:47 Tomek Sowiński <[email protected]> napisał(a):

// specialization needed to limit matching types
void print(T:int)(T thing)

To be clear -- I did this to silence the compiler saying the call with array matches more than one function template declaration. I'm not sure whether the compiler is right -- it has a print specifically for arrays so it should be picked over plain print(T) as it's more specialized... any template expert here?


Tomek

Reply via email to