* @brief Exception declarations
*/
-#ifndef LIBMEMACHED_EXCEPTION_HPP
-#define LIBMEMACHED_EXCEPTION_HPP
+#pragma once
#include <stdexcept>
#include <string>
Exception(const char *msg, int in_errno)
:
- std::runtime_error(string(msg)),
+ std::runtime_error(std::string(msg)),
_errno(in_errno) {}
virtual ~Exception() throw() {}
};
} /* namespace libmemcached */
-
-#endif /* LIBMEMACHED_EXCEPTION_HPP */