Describe the bug
READ_VALUE function in global_function.h is defined as
template <class T>
static void READ_VALUE(std::ifstream &ifs, T &v)
{
ifs >> v;
ifs.ignore(150, '\n');
return;
}
When the remaining string is longer than 150 charactors, this function will cause various bugs.
Expected behavior
The ignore function should be replaced by getline.
To Reproduce
No response
Environment
No response
Additional Context
No response
Describe the bug
READ_VALUEfunction inglobal_function.his defined astemplate <class T>static void READ_VALUE(std::ifstream &ifs, T &v){ifs >> v;ifs.ignore(150, '\n');return;}When the remaining string is longer than 150 charactors, this function will cause various bugs.
Expected behavior
The
ignorefunction should be replaced bygetline.To Reproduce
No response
Environment
No response
Additional Context
No response