by nemetroid · 11mo ago · 0 comments
std::pair<const std::string, int>
vs std::pair<std::string, int>There's no such thing as "changing the type" in c++. Function returns an object type A, your variable is of type B, compiler tries to see if there is a conversion of the value of type A to a new value of type B