Answers for "call of overloaded ‘swap(int&, int&)’ is ambiguous"

C++
0

call of overloaded ‘swap(int&, int&)’ is ambiguous

Your swap conflicts with std::swap. Remove using namespace std; 
above and correct the rest code from std namespace.
Posted by: Guest on September-23-2021

Browse Popular Code Answers by Language