Title
Bitmask operator ~ specified incorrectly
Status
cd1
Section
[bitmask.types]
Submitter
Beman Dawes

Created on 2000-09-03.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Change 17.3.2.1.2 [lib.bitmask.types] operator~ from:

   bitmask operator~ ( bitmask X )
     { return static_cast< bitmask>(static_cast<int_type>(~ X)); }

to:

   bitmask operator~ ( bitmask X )
     { return static_cast< bitmask>(~static_cast<int_type>(X)); }
Date: 2000-09-03.00:00:00

The ~ operation should be applied after the cast to int_type.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg2041
2000-09-03 00:00:00admincreate