NOW IT SHOULD

This commit is contained in:
apio 2022-06-08 17:50:19 +02:00
parent f5495d0138
commit 6eb401d04d

View File

@ -18,7 +18,7 @@ class Parser
}
Token errtok()
{
return error_tok;
return *(error_tok.get());
}
ErrorOr(T* ptr) : m_ptr(ptr), m_is_error(false) {}
@ -29,7 +29,7 @@ class Parser
private:
bool m_is_error;
std::string m_error;
Token error_tok;
std::shared_ptr<Token> error_tok;
std::shared_ptr<T> m_ptr;
};
private: