question about template function overloading

Hi,

I created two functions as

template<typename A, typename B>
static void func(A& a, B& b, string s){}

template<typename A, typename B>
static void func(A& a, B& b, int i, double d){}

but when I call Class::func(a, b, 1, 0.2), i see compiling error which indicating that func(A& a, B& b, string s) is called.

Could someone explain?
Thanks
Chris
never mind. my bad. thanks
Topic archived. No new replies allowed.