Ambiguous call to overloaded function - std::to_string [duplicate]
This question already has an answer here: std::to_string - more than instance of overloaded function matches the argument list 2 answers In attempting to insert integer values into a string, I thought that my prayers were answered when I found std::to_string, but for some reason whenever I actually try to use it, Visual Studio complains about ambiguity. Here is the current incarnation of my function: string get_time_remaining (int elapsed) { string remaining; string temp_string; int time_remaining = TimeLimit - elapsed; int temp_int; temp_int = int(time_remaining / 3600); if(temp_int == 0)