Ok, which is the best to avoid ambiguity here?
template <class T>
inline void swap(T &a, T &b)
{
T c; c = a; a = b; b = c;
}
/* blah blah blah (inside of a function:) */
for (itv = vals.begin(); itv != vals.end(); ++itv)
{
if (at < (*itv)) { swap(at, (*itv)); }
if (at % (*itv) == 0) atadd = false;
}
/* blah blah blah */
Calling with a swap doesn't work either, as it says cannot resolve whether it is "void swap(T &,T &)", "void std::swap(_Ty &,_Ty &)" or ...
Btw, itv is a vector<int>::iterator.
Thx.