...
This commit is contained in:
@@ -25,17 +25,17 @@ enum class AsibFM700ServoControllerErrorCode : int {
|
||||
};
|
||||
|
||||
// error category
|
||||
struct AsibFM700HardwareErrorCategory : public std::error_category {
|
||||
struct AsibFM700ServoControllerErrorCategory : public std::error_category {
|
||||
const char* name() const noexcept;
|
||||
std::string message(int ec) const;
|
||||
|
||||
static const AsibFM700HardwareErrorCategory& get();
|
||||
static const AsibFM700ServoControllerErrorCategory& get();
|
||||
};
|
||||
|
||||
|
||||
static inline std::error_code make_error_code(AsibFM700ServoControllerErrorCode ec)
|
||||
{
|
||||
return std::error_code(static_cast<int>(ec), AsibFM700HardwareErrorCategory::get());
|
||||
return std::error_code(static_cast<int>(ec), AsibFM700ServoControllerErrorCategory::get());
|
||||
}
|
||||
|
||||
} // namespace asibfm700
|
||||
|
||||
Reference in New Issue
Block a user