if (escaped_ch == -1)
{
error << "error: an error occurred getting a character from offset " <<start_index;
- value = std::move(error.str());
+ value = error.str();
return Token::Error;
}
{
error << "error: wide character support is needed for unicode character 0x" << std::setprecision(4) << std::hex << escaped_ch;
error << " at offset " << start_index;
- value = std::move(error.str());
+ value = error.str();
return Token::Error;
}
}
if (got_decimal_point)
{
error << "error: extra decimal point found at offset " << start_index;
- value = std::move(error.str());
+ value = error.str();
return Token::Error;
}
else
if (exp_index != 0)
{
error << "error: extra exponent character found at offset " << start_index;
- value = std::move(error.str());
+ value = error.str();
return Token::Error;
}
else
else
{
error << "error: unexpected " << next_ch << " character at offset " << start_index;
- value = std::move(error.str());
+ value = error.str();
return Token::Error;
}
break;
else
{
error << "error: got exponent character but no exponent digits at offset in float value \"" << value.c_str() << "\"";
- value = std::move(error.str());
+ value = error.str();
return Token::Error;
}
}
else
{
error << "error: no digits after decimal point \"" << value.c_str() << "\"";
- value = std::move(error.str());
+ value = error.str();
return Token::Error;
}
}
else
{
error << "error: no digits negate sign \"" << value.c_str() << "\"";
- value = std::move(error.str());
+ value = error.str();
return Token::Error;
}
}
else
{
error << "error: invalid number found at offset " << start_index;
- value = std::move(error.str());
+ value = error.str();
return Token::Error;
}
}
break;
}
error << "error: failed to parse token at offset " << start_index << " (around character '" << ch << "')";
- value = std::move(error.str());
+ value = error.str();
return Token::Error;
}