Created on 2008-05-17.00:00:00 last changed 171 months ago
Proposed resolution:
I propose to tighten things up by adding a Postcondition clause to the function like so:
Postconditions:
copyfmt()
postconditionsElement Value rdbuf()
unchanged tie()
rhs.tie()
rdstate()
unchanged exceptions()
rhs.exceptions()
flags()
rhs.flags()
width()
rhs.width()
precision()
rhs.precision()
fill()
rhs.fill()
getloc()
rhs.getloc()
The format of the table follows Table 117 (as
of N2588): basic_ios::init()
effects.
The intent of the new table is not to impose any new requirements or change existing ones, just to be more explicit about what I believe is already there.
[ Batavia (2009-05): ]
We agree with the proposed resolution. Move to NAD Editorial.
The basic_ios::copyfmt()
member function is specified in [basic.ios.members] to have the following effects:
Effects: If
(this == &rhs)
does nothing. Otherwise assigns to the member objects of*this
the corresponding member objects ofrhs
, except that
rdstate()
andrdbuf()
are left unchanged;exceptions()
is altered last by callingexceptions(rhs.except)
- the contents of arrays pointed at by
pword
andiword
are copied not the pointers themselves
Since the rest of the text doesn't specify what the member objects
of basic_ios
are this seems a little too loose.
History | |||
---|---|---|---|
Date | User | Action | Args |
2010-10-21 18:28:33 | admin | set | messages: + msg4004 |
2010-10-21 18:28:33 | admin | set | messages: + msg4003 |
2008-05-17 00:00:00 | admin | create |