NOW IT SHOULD
This commit is contained in:
parent
f5495d0138
commit
6eb401d04d
@ -18,7 +18,7 @@ class Parser
|
|||||||
}
|
}
|
||||||
Token errtok()
|
Token errtok()
|
||||||
{
|
{
|
||||||
return error_tok;
|
return *(error_tok.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
ErrorOr(T* ptr) : m_ptr(ptr), m_is_error(false) {}
|
ErrorOr(T* ptr) : m_ptr(ptr), m_is_error(false) {}
|
||||||
@ -29,7 +29,7 @@ class Parser
|
|||||||
private:
|
private:
|
||||||
bool m_is_error;
|
bool m_is_error;
|
||||||
std::string m_error;
|
std::string m_error;
|
||||||
Token error_tok;
|
std::shared_ptr<Token> error_tok;
|
||||||
std::shared_ptr<T> m_ptr;
|
std::shared_ptr<T> m_ptr;
|
||||||
};
|
};
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user