mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-30 08:38:15 +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:
|
private:
|
||||||
void hold(const SAXParseExceptionT& exception)
|
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
|
} // hold
|
||||||
|
|
||||||
std::string errors_;
|
std::string errors_;
|
||||||
|
|
Loading…
Add table
Reference in a new issue