У меня есть следующий код (упрощенный):
Код: Выделить всё
int main()
{
try
{
throw "not implemented";
}
catch(std::string &error)
{
cerr
Подробнее здесь: [url]https://stackoverflow.com/questions/4831523/what-type-should-i-catch-if-i-throw-a-string-literal[/url]