From c8f9797a88edd041d835a2b388fb8779474c3e81 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 24 Jun 2022 13:45:00 -1000 Subject: refactor(parser): out-of-line definition for parser_exception --- src/parser.cc | 3 +++ src/parser.hh | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/parser.cc b/src/parser.cc index 7bbc388..f853629 100644 --- a/src/parser.cc +++ b/src/parser.cc @@ -23,6 +23,9 @@ namespace cait { +parser_exception::parser_exception(const std::string &message) + : std::runtime_error(message) {} + token_bundle::token_bundle(std::size_t &_j, token_t &bundle_token, std::vector &_parsed_token_line, std::vector &_token_line) diff --git a/src/parser.hh b/src/parser.hh index f49081e..5d1cdb4 100644 --- a/src/parser.hh +++ b/src/parser.hh @@ -31,8 +31,7 @@ using node_tree = std::vector; class parser_exception : public std::runtime_error { public: - explicit parser_exception(const std::string &message) - : std::runtime_error(message) {} + explicit parser_exception(const std::string &); }; struct token_bundle { -- cgit v1.2.3