diff options
| author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-09 16:11:40 +0000 |
|---|---|---|
| committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-09 16:11:40 +0000 |
| commit | abe68c7d917fb4c9322a4756d290d74ac7ec4b73 (patch) | |
| tree | b4bd7eca6d663546516f03c298346c29db83fe8d /libstdc++-v3/include/std/std_fstream.h | |
| parent | dc1ceee2b63ef40d3fb468cc52cbd9b2577331e1 (diff) | |
| download | ppe42-gcc-abe68c7d917fb4c9322a4756d290d74ac7ec4b73.tar.gz ppe42-gcc-abe68c7d917fb4c9322a4756d290d74ac7ec4b73.zip | |
2003-10-09 Petur Runolfsson <peturr02@ru.is>
PR libstdc++/9874
* include/bits/fstream.tcc (basic_filebuf::seekoff):
Move code needed for both seekoff and seekpos...
(basic_filebuf::_M_seek): ...here. New function.
(basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
* include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
* testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
* testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72268 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/std/std_fstream.h')
| -rw-r--r-- | libstdc++-v3/include/std/std_fstream.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libstdc++-v3/include/std/std_fstream.h b/libstdc++-v3/include/std/std_fstream.h index 406ff1e2921..dd19cccfcfd 100644 --- a/libstdc++-v3/include/std/std_fstream.h +++ b/libstdc++-v3/include/std/std_fstream.h @@ -379,6 +379,15 @@ namespace std seekpos(pos_type __pos, ios_base::openmode __mode = ios_base::in | ios_base::out); + // Common code for seekoff and seekpos + /** + * @if maint + * @doctodo + * @endif + */ + pos_type + _M_seek(off_type __off, ios_base::seekdir __way); + // [documentation is inherited] virtual int sync() |

