diff options
| author | ilotterytea <iltsu@alright.party> | 2024-05-05 11:35:40 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-05-05 11:35:40 +0500 |
| commit | 2ebdb1677ce38e44c5b69fe21d3e984454e1a775 (patch) | |
| tree | a4ecd48aad37bb2f3ad7fb0762fb4c7e8b978ebf /src | |
| parent | a150df50e31d8cb6145a4ffe7cc7e3a3c623ca54 (diff) | |
fix: added ::type thing
Diffstat (limited to 'src')
| -rw-r--r-- | src/commands/response_error.hpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/commands/response_error.hpp b/src/commands/response_error.hpp index deb142e..6aa1248 100644 --- a/src/commands/response_error.hpp +++ b/src/commands/response_error.hpp @@ -43,8 +43,9 @@ namespace bot::command { }; template <ResponseErrorType T> - class ResponseError<T, typename std::enable_if<T == SOMETHING_WENT_WRONG || - T == INSUFFICIENT_RIGHTS>> { + class ResponseError<T, + typename std::enable_if<T == SOMETHING_WENT_WRONG || + T == INSUFFICIENT_RIGHTS>::type> { public: ResponseError() : m_type(T){}; ~ResponseError() = default; @@ -56,7 +57,8 @@ namespace bot::command { }; template <ResponseErrorType T> - class ResponseError<T, typename std::enable_if<T == EXTERNAL_API_ERROR>> { + class ResponseError<T, + typename std::enable_if<T == EXTERNAL_API_ERROR>::type> { public: ResponseError(const int &code, const std::optional<std::string> &message) : m_code(code), message(message), m_type(T){}; @@ -75,7 +77,8 @@ namespace bot::command { }; template <ResponseErrorType T> - class ResponseError<T, typename std::enable_if<T == NOT_ENOUGH_ARGUMENTS>> { + class ResponseError< + T, typename std::enable_if<T == NOT_ENOUGH_ARGUMENTS>::type> { public: ResponseError(const CommandArgument &argument) : m_argument(argument), m_type(T){}; |
