From 6eb401d04d4d3c98692173bb8195ef6477d9a1cf Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 8 Jun 2022 17:50:19 +0200 Subject: [PATCH] NOW IT SHOULD --- src/Parser.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Parser.h b/src/Parser.h index e6d8684..25be0e3 100644 --- a/src/Parser.h +++ b/src/Parser.h @@ -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 error_tok; std::shared_ptr m_ptr; }; private: