mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 08:46:53 +08:00
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:
parent
2898ae679f
commit
31d16e6013
@ -2280,7 +2280,7 @@ namespace chaiscript {
|
||||
}
|
||||
build_match<eval::Dot_Access_AST_Node<Tracer>>(prev_stack_top);
|
||||
} else if (Eol()) {
|
||||
auto start = --m_position;
|
||||
const auto& start = --m_position;
|
||||
while (Eol()) {
|
||||
}
|
||||
if (Symbol(".")) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user