diff --git a/include/DOM/DOMException.hpp b/include/DOM/DOMException.hpp index 78702ed1..7804f589 100644 --- a/include/DOM/DOMException.hpp +++ b/include/DOM/DOMException.hpp @@ -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