6 #define HEBI_DISABLE_COPY_MOVE(Class) \ 8 Class(const Class& other) = delete; \ 10 Class(Class&& other) = delete; \ 12 Class& operator= (const Class& other) = delete; \ 14 Class& operator= (Class&& other) = delete; 16 #define HEBI_DISABLE_COPY(Class) \ 18 Class(const Class& other) = delete; \ 20 Class& operator= (const Class& other) = delete; 35 operator bool()
const {
return ok_; }
46 std::string failure_message_;
FunctionCallResult(bool success)
Definition: util.hpp:30
Used as a return.
Definition: util.hpp:28
FunctionCallResult(bool success, const std::string &failure)
Definition: util.hpp:31
bool success() const
Definition: util.hpp:36
const std::string & failureMessage() const
Definition: util.hpp:43
FunctionCallResult & operator=(FunctionCallResult &&)=default