Result: Reorder constructors

This commit is contained in:
apio 2022-11-01 22:28:34 +01:00
parent 2cb477447e
commit f8d76c9bea

View File

@ -35,10 +35,10 @@ template<typename T> class Result
bool m_is_error;
std::string m_error;
Result(T* result, Token* token) : m_result(result), m_token(token), m_is_error(false)
Result(T* result, Token* token) : m_token(token), m_result(result), m_is_error(false)
{
}
Result(std::string&& error, Token* token) : m_error(error), m_token(token), m_is_error(true)
Result(std::string&& error, Token* token) : m_token(token), m_is_error(true), m_error(error)
{
}
};