MinGW and MSVC fixes.

This commit is contained in:
Andreas Huggel
2010-01-18 16:34:16 +00:00
parent ba5a7b9075
commit 9b4f4f84d6
4 changed files with 16 additions and 14 deletions
+3 -1
View File
@@ -18,7 +18,9 @@ int main()
throw Exiv2::WError(-1, L"WARG1", L"WARG2", L"WARG3");
}
catch (const Exiv2::WError& e) {
std::wcout << "Caught WError '" << e.wwhat() << "'\n";
std::wstring wmsg = e.wwhat();
std::string msg(wmsg.begin(), wmsg.end());
std::cout << "Caught WError '" << msg << "'\n";
}
return 0;