#include <string>
struct A {
const std::string get(const std::string& value) const {
return value;
}
const bool get(bool value) const {
return value;
}
};
int main(int argc, char **argv){
A a;
const std::string str = a.get(std::string("abc"));
const bool b = a.get(true);
return 0;
}
I2luY2x1ZGUgPHN0cmluZz4KCnN0cnVjdCBBIHsKY29uc3Qgc3RkOjpzdHJpbmcgZ2V0KGNvbnN0IHN0ZDo6c3RyaW5nJiB2YWx1ZSkgY29uc3QgewpyZXR1cm4gdmFsdWU7Cn0KY29uc3QgYm9vbCBnZXQoYm9vbCB2YWx1ZSkgY29uc3QgewpyZXR1cm4gdmFsdWU7Cn0KfTsgCgppbnQgbWFpbihpbnQgYXJnYywgY2hhciAqKmFyZ3YpewogIEEgYTsKICBjb25zdCBzdGQ6OnN0cmluZyBzdHIgPSBhLmdldChzdGQ6OnN0cmluZygiYWJjIikpOwogIGNvbnN0IGJvb2wgYiA9IGEuZ2V0KHRydWUpOwogIHJldHVybiAwOwp9