Hello, I have this function:
When I make a call it passing float arguments, like here:Code:template <typename T> void swap (T& arg1, T& arg2) { T& tmp = arg1; arg1 = arg2; arg2 = tmp; }
, I receive:Code:if (tmin > tmax) swap(tmin, tmax);
Code:/media/34GB/demos/asmfrt/Bbox.h|29|error: call of overloaded ‘swap(float&, float&)’ is ambiguous|How can this be treated? Thanks in advance.Code:/media/34GB/demos/asmfrt/Miscellaneous.h|44|note: candidates are: void swap(T&, T&) [with T = float]|