#include <iostream>
#include <string>
class A {
private:
std::string s = std::string("hello");
public:
operator std::string& () {return s;}
//operator const char* () {return s.c_str();}
};
int main() {
A a;
std::cout << (std::string)a << '\n';
}