mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-17 18:12:04 +01:00
VS.NET workaround
This commit is contained in:
parent
17090b3b55
commit
ab3cf245e4
1 changed files with 6 additions and 1 deletions
|
@ -40,7 +40,12 @@ public:
|
|||
private:
|
||||
void hold(const SAXParseExceptionT& exception)
|
||||
{
|
||||
errors_ += exception.what();
|
||||
// if I just call exception.what() VS.NET seems to ignore the
|
||||
// dynamic dispatch, and inlines std::exception::what to give "Unknown Exception".
|
||||
// Naughty!
|
||||
// doing this prevents it doing that
|
||||
// GCC got it right
|
||||
errors_ += SAXParseExceptionT(exception).what();
|
||||
} // hold
|
||||
|
||||
std::string errors_;
|
||||
|
|
Loading…
Reference in a new issue