47 #ifndef _MIRA_SYSTEM_ERROR_H_ 48 #define _MIRA_SYSTEM_ERROR_H_ 51 #include <boost/system/error_code.hpp> 56 #if defined(MIRA_LINUX) 58 #elif defined(MIRA_WINDOWS) 65 #if defined(MIRA_LINUX) 68 inline boost::system::error_code getLastSystemErrorCode()
70 return boost::system::error_code(errno,
71 #
if BOOST_VERSION < 105500
72 boost::system::get_generic_category());
74 boost::system::generic_category());
79 inline void setLastSystemErrorCode(
int errorCode)
84 #elif defined(MIRA_WINDOWS) 87 inline boost::system::error_code getLastSystemErrorCode()
89 return boost::system::error_code(GetLastError(),
90 boost::system::get_system_category());
94 inline void setLastSystemErrorCode(
int errorCode)
96 SetLastError(errorCode);
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67