mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
Document the terminating '\0' in the num_get facet.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16093 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a5df789cae
commit
f17d9a7b86
@ -468,6 +468,10 @@ protected:
|
||||
s.reserve(64);
|
||||
for (; iit != eit && isNumpunct(*iit); ++iit)
|
||||
s += static_cast<char>(*iit);
|
||||
// We add another character, not part of the numpunct facet,
|
||||
// in order to avoid setting the eofbit in the stream state,
|
||||
// which would prevent any further read. The '\0' seems a
|
||||
// good choice here.
|
||||
s += '\0';
|
||||
string_num_get_facet f;
|
||||
f.get(s.begin(), s.end(), b, err, v);
|
||||
|
Loading…
Reference in New Issue
Block a user