Solved ISO C++ ambiguous warning