Call of overloaded function is ambiguous
The literal 0 has two meanings in C++. On the one hand, it is an integer with the value 0. On the other hand, it is a null-pointer constant. As your setval function can accept either an int or a char*, the compiler can not decide which overload you meant. The easiest solution is to … Read more