Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.std.c++ > #704

RE: The behavior of streambuf::seekoff

From Nach <nachman+compgroups@nissuin.org>
Newsgroups comp.std.c++
Subject RE: The behavior of streambuf::seekoff
Date 2014-02-14 10:41 -0800
Organization unknown
Message-ID <A7GdnY58FYVxVGTPnZ2dnUVZ_uudnZ2d@giganews.com> (permalink)
References <a35216ce-65bb-4cec-b4fd-06c955c2444a@x31g2000yqx.googlegroups.com>

Show all headers | View raw


According to the C++ 2011 standard (and possibly prior ones as well),
seekoff is supposed to fail when the parameters passed are "cur",
"in|out".

In the case where the parameters passed are "beg" or "end" with
"in|out", the position of both of them are identical, in which case it
does not matter whether it is calculated from in or out.



--
[ comp.std.c++ is moderated.  To submit articles, try posting with your ]
[ newsreader.  If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]

Back to comp.std.c++ | Previous | NextNext in thread | Find similar


Thread

RE: The behavior of streambuf::seekoff Nach <nachman+compgroups@nissuin.org> - 2014-02-14 10:41 -0800
  Re: The behavior of streambuf::seekoff Daniel Krügler <daniel.kruegler@googlemail.com> - 2014-02-18 14:36 -0800
    Re: The behavior of streambuf::seekoff nachman@nissuin.org - 2014-02-19 19:41 -0800
    Re: The behavior of streambuf::seekoff James Kuyper <jameskuyper@verizon.net> - 2014-02-19 19:41 -0800

csiph-web