X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=libmemcached%2Fexception.hpp;h=4759072abdd758445e47674f37ef52cd9f151835;hb=b77f874c7d7ff386d01eeedb44c14d3003354bae;hp=0754dff02f6865310fe72f3b68dc1e758958bbf1;hpb=2570410ed06fe7b831a782b2fe56dc7947327408;p=m6w6%2Flibmemcached diff --git a/libmemcached/exception.hpp b/libmemcached/exception.hpp index 0754dff0..4759072a 100644 --- a/libmemcached/exception.hpp +++ b/libmemcached/exception.hpp @@ -10,11 +10,10 @@ * @brief Exception declarations */ -#ifndef LIBMEMACHED_EXCEPTION_HPP -#define LIBMEMACHED_EXCEPTION_HPP +#pragma once #include - +#include namespace memcache { @@ -29,7 +28,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() {} @@ -59,5 +58,3 @@ namespace memcache }; } /* namespace libmemcached */ - -#endif /* LIBMEMACHED_EXCEPTION_HPP */