class String
{
public:
String() {}
//[...]
//These methods concatenate a String with a number
String& operator+=(const int rhs) { return *this; }
String& operator+(const int rhs) { return (*this); }
String& operator+=(const float rhs) { return *this; }
String& operator+(const float rhs) { return *this; }
//[...]
};
int main()
{
String s;
int i = 5;
String s2 = s + i;
}
CmNsYXNzIFN0cmluZwp7CnB1YmxpYzoKICAgIFN0cmluZygpIHt9CgkKCS8vWy4uLl0KCQoJLy9UaGVzZSBtZXRob2RzIGNvbmNhdGVuYXRlIGEgU3RyaW5nIHdpdGggYSBudW1iZXIKCVN0cmluZyYgb3BlcmF0b3IrPShjb25zdCBpbnQgcmhzKSB7IHJldHVybiAqdGhpczsgfQoJU3RyaW5nJiBvcGVyYXRvcisoY29uc3QgaW50IHJocykgeyByZXR1cm4gKCp0aGlzKTsgfQoKCQoJU3RyaW5nJiBvcGVyYXRvcis9KGNvbnN0IGZsb2F0IHJocykgeyByZXR1cm4gKnRoaXM7IH0KCVN0cmluZyYgb3BlcmF0b3IrKGNvbnN0IGZsb2F0IHJocykgeyByZXR1cm4gKnRoaXM7IH0KCQoJLy9bLi4uXQp9OwoKCmludCBtYWluKCkKewogICAgU3RyaW5nIHM7CiAgICBpbnQgaSA9IDU7CiAgICBTdHJpbmcgczIgPSBzICsgaTsKfQ==