5 #ifndef PIVX_OPERATIONRESULT_H
6 #define PIVX_OPERATIONRESULT_H
23 explicit operator bool()
const {
return m_res; }
const Optional< T > & getObjResult() const
CallResult(const std::string &error)
std::string getError() const
OperationResult(bool _res, const std::string &_error)
Optional< std::string > m_error
OperationResult(bool _res)
#define T(expected, seed, data)
OperationResult errorOut(const std::string &errorStr)
boost::optional< T > Optional
Substitute for C++17 std::optional.
bool error(const char *fmt, const Args &... args)