Why aren't you using std :: string?
try {
doSomething();
} catch (const std::exception& e)
{
throw std::exception(std::string("myTag: ") + e.what());
}
Other notes: As far as I know, std :: exception does not have such a constructor form (only its subclasses).
, TCHAR. std::exception::what - -, char*? , , std::basic_string<TCHAR>.
: a const char* ( - ). , , 10 13 :
throw some_exception(e.what() + '\n' + moreinfo);