#include <iostream>
#include <string>

class MyStr
{
	std::string m_MyStr;
public:
	MyStr(const std::string &str)
	: m_MyStr(str)
	{}

	const std::string &GetString() const
	{ return m_MyStr; }
};

void DoSth(const MyStr &mystr)
{
	std::cout << mystr.GetString() << '\n';
}

int main() {
	//DoSth("Test"); // Doesn't work
	DoSth({"Test"});
	MyStr a = {"Test2"};

	return 0;
}