From 96f2fb050ad6fcb7abe759d6af2e183c1c53c390 Mon Sep 17 00:00:00 2001 From: Stefan Radomski Date: Sun, 13 Jan 2013 17:49:54 +0100 Subject: [PATCH] MSVC10 does not know operator+ for string and const char* --- include/DOM/DOMException.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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