template specialization question
Tomek Sowiński
just at ask.me
Sun Jan 31 12:14:04 PST 2010
Dnia 31-01-2010 o 20:59:47 Tomek Sowiński <just at ask.me> 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
More information about the Digitalmars-d-learn
mailing list