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:
Enrico Forestieri 2006-11-28 19:15:05 +00:00
parent a5df789cae
commit f17d9a7b86

View File

@ -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);