From: Padraig O'Sullivan Date: Sat, 19 Sep 2009 23:52:02 +0000 (-0400) Subject: Updating Patrick's C++ exceptions to build without warnings on solaris. X-Git-Tag: 0.34~13^2~6 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=e635ad01875005520a017a178aac7b49063585ea;p=awesomized%2Flibmemcached Updating Patrick's C++ exceptions to build without warnings on solaris. --- diff --git a/libmemcached/exception.hpp b/libmemcached/exception.hpp index 0754dff0..043779a6 100644 --- a/libmemcached/exception.hpp +++ b/libmemcached/exception.hpp @@ -14,7 +14,7 @@ #define LIBMEMACHED_EXCEPTION_HPP #include - +#include namespace memcache { @@ -29,7 +29,7 @@ namespace memcache Exception(const char *msg, int in_errno) : - std::runtime_error(msg), + std::runtime_error(string(msg)), _errno(in_errno) {} virtual ~Exception() throw() {}