MSVC Fix compiler warning

MSVC hints for this line: Assigning by value when a const-reference would suffice, use const auto& instead.
This commit is contained in:
Edo 2022-03-24 09:30:55 +00:00 committed by GitHub
parent 2898ae679f
commit 31d16e6013
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2280,7 +2280,7 @@ namespace chaiscript {
} }
build_match<eval::Dot_Access_AST_Node<Tracer>>(prev_stack_top); build_match<eval::Dot_Access_AST_Node<Tracer>>(prev_stack_top);
} else if (Eol()) { } else if (Eol()) {
auto start = --m_position; const auto& start = --m_position;
while (Eol()) { while (Eol()) {
} }
if (Symbol(".")) { if (Symbol(".")) {