Parser.hpp: Fix a tiny typo at line 154

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-08-20 13:45:27 +02:00
parent 4795bd54a0
commit 8e74bff30b
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ namespace Parser {
}
const auto& last = parseTree.cend() - 1;
const type_info& lastId = last->get()->getId();
const auto& last_identifier = dynamic_cast<NamedIdentifier<true>*>(last->get());
const auto* last_identifier = dynamic_cast<NamedIdentifier<true>*>(last->get());
if (last_identifier != nullptr) {
if (lastId != typeid(Define) and
any_of(parseTree.cbegin(), last, [&last_identifier](const component_ptr& pointer){