Result: Reorder constructors
This commit is contained in:
parent
2cb477447e
commit
f8d76c9bea
@ -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)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user