MSVC10 does not know operator+ for string and const char*

This commit is contained in:
Stefan Radomski 2013-01-13 17:49:54 +01:00
parent f46a265432
commit 96f2fb050a

View file

@ -17,7 +17,7 @@ class DOMBadCast : public std::bad_cast
{
public:
DOMBadCast(const char* expectedType) :
message_(std::string("Cannot cast to ") + expectedType)
message_(std::string("Cannot cast to ") + std::string(expectedType))
{
} // DOMBadCast