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