Re: Правилен ли такой код?
От: front242  
Дата: 12.08.05 11:09
Оценка:
std::string func2(const std::string& arg)
{
std::string *ptemp = new std::string;
return *ptemp;
}

std::string& func1(const std::string& arg)
{
std::string& temp = func2(arg);
return temp;
}
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.