From e635ad01875005520a017a178aac7b49063585ea Mon Sep 17 00:00:00 2001 From: Padraig O'Sullivan Date: Sat, 19 Sep 2009 19:52:02 -0400 Subject: [PATCH] Updating Patrick's C++ exceptions to build without warnings on solaris. --- libmemcached/exception.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {} -- 2.30.2