projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge in fixes for SASL.
[m6w6/libmemcached]
/
libmemcached
/
exception.hpp
diff --git
a/libmemcached/exception.hpp
b/libmemcached/exception.hpp
index 0754dff02f6865310fe72f3b68dc1e758958bbf1..4759072abdd758445e47674f37ef52cd9f151835 100644
(file)
--- a/
libmemcached/exception.hpp
+++ b/
libmemcached/exception.hpp
@@
-10,11
+10,10
@@
* @brief Exception declarations
*/
* @brief Exception declarations
*/
-#ifndef LIBMEMACHED_EXCEPTION_HPP
-#define LIBMEMACHED_EXCEPTION_HPP
+#pragma once
#include <stdexcept>
#include <stdexcept>
-
+#include <string>
namespace memcache
{
namespace memcache
{
@@
-29,7
+28,7
@@
namespace memcache
Exception(const char *msg, int in_errno)
:
Exception(const char *msg, int in_errno)
:
- std::runtime_error(
msg
),
+ std::runtime_error(
std::string(msg)
),
_errno(in_errno) {}
virtual ~Exception() throw() {}
_errno(in_errno) {}
virtual ~Exception() throw() {}
@@
-59,5
+58,3
@@
namespace memcache
};
} /* namespace libmemcached */
};
} /* namespace libmemcached */
-
-#endif /* LIBMEMACHED_EXCEPTION_HPP */