Skip to content

Instantly share code, notes, and snippets.

@Chippiewill
Created December 30, 2016 16:44
Show Gist options
  • Save Chippiewill/f081ec3d06a29312e18454460ad3d393 to your computer and use it in GitHub Desktop.
Save Chippiewill/f081ec3d06a29312e18454460ad3d393 to your computer and use it in GitHub Desktop.
diff --git a/engines/utilities/engine_error.cc b/engines/utilities/engine_error.cc
index 7fc1f63..e16d299 100644
--- a/engines/utilities/engine_error.cc
+++ b/engines/utilities/engine_error.cc
@@ -63,6 +63,11 @@ public:
return iter->second;
}
}
+
+ std::error_condition default_error_condition(int code) const NOEXCEPT override {
+ return std::error_condition(code, *this);
+ }
+
};
const std::error_category& cb::engine_error_category() NOEXCEPT {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment