VS.NET workaround

This commit is contained in:
jez_higgins 2004-02-24 16:07:09 +00:00
parent 17090b3b55
commit ab3cf245e4

View file

@ -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_;