initial matador ng commit

This commit is contained in:
2025-02-02 20:37:12 +01:00
parent 19de5714f4
commit ded3daceb3
378 changed files with 14913 additions and 13431 deletions
+29
View File
@@ -0,0 +1,29 @@
#ifndef ERRORS_HPP
#define ERRORS_HPP
#include "matador/utils/export.hpp"
#include <system_error>
namespace matador::utils {
enum class utils_error {
InvalidVersionString,
};
class utils_category_impl final : public std::error_category
{
public:
[[nodiscard]] const char* name() const noexcept override;
[[nodiscard]] std::string message(int ev) const override;
};
const std::error_category& utils_category();
std::error_code make_error_code(utils_error e);
std::error_condition make_error_condition(utils_error e);
}
template <>
struct std::is_error_code_enum<matador::utils::utils_error> : true_type {};
#endif //ERRORS_HPP