Title
Odd wording for bitset equality operators
Status
nad editorial
Section
[bitset.members]
Submitter
Alisdair Meredith

Created on 2009-07-02.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Change [bitset.members] p42-43:

bool operator==(const bitset<N>& rhs) const;

-42- Returns: A nonzero value true if the value of each bit in *this equals the value of the corresponding bit in rhs.

bool operator!=(const bitset<N>& rhs) const;

-43- Returns: A nonzero value true if !(*this == rhs).

Date: 2009-07-27.00:00:00

[ 2009-07-27 Howard sets to NAD Editorial. ]

Date: 2009-07-27.00:00:00

[ 2009-07-27 Pete adds: ]

It's obviously editorial. There's no need for further discussion.

Date: 2009-07-24.00:00:00

[ 2009-07-24 Alisdair recommends NAD Editorial. ]

Date: 2009-07-02.00:00:00

The following wording seems a little unusual to me:

p42/43 [bitset.members]

bool operator==(const bitset<N>& rhs) const;

-42- Returns: A nonzero value if the value of each bit in *this equals the value of the corresponding bit in rhs.

bool operator!=(const bitset<N>& rhs) const;

-43- Returns: A nonzero value if !(*this == rhs).

"A nonzero value" may be well defined as equivalent to the literal 'true' for Booleans, but the wording is clumsy. I suggest replacing "A nonzero value" with the literal 'true' (in appropriate font) in each case.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg991
2010-10-21 18:28:33adminsetmessages: + msg990
2010-10-21 18:28:33adminsetmessages: + msg989
2010-10-21 18:28:33adminsetmessages: + msg988
2009-07-02 00:00:00admincreate