X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fexception.hpp;h=4759072abdd758445e47674f37ef52cd9f151835;hb=5febc397f702ce74f79f3e590432c85b025a32fc;hp=043779a6b8e8620bb43da5201892ea64cd8e655b;hpb=e635ad01875005520a017a178aac7b49063585ea;p=awesomized%2Flibmemcached diff --git a/libmemcached/exception.hpp b/libmemcached/exception.hpp index 043779a6..4759072a 100644 --- a/libmemcached/exception.hpp +++ b/libmemcached/exception.hpp @@ -10,8 +10,7 @@ * @brief Exception declarations */ -#ifndef LIBMEMACHED_EXCEPTION_HPP -#define LIBMEMACHED_EXCEPTION_HPP +#pragma once #include #include @@ -29,7 +28,7 @@ namespace memcache Exception(const char *msg, int in_errno) : - std::runtime_error(string(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 */