Merged up with build.
[m6w6/libmemcached] / libmemcached / exception.hpp
index 0754dff02f6865310fe72f3b68dc1e758958bbf1..665c816fc10b3c69a160cf2936df4d2d5a070b31 100644 (file)
@@ -14,7 +14,7 @@
 #define LIBMEMACHED_EXCEPTION_HPP
 
 #include <stdexcept>
-
+#include <string>
 
 namespace memcache 
 {
@@ -29,7 +29,7 @@ namespace memcache
 
     Exception(const char *msg, int in_errno)
       : 
-        std::runtime_error(msg), 
+        std::runtime_error(std::string(msg)), 
         _errno(in_errno) {}
 
     virtual ~Exception() throw() {}