Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-9529

TBits::operator~() must be const

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.34/38, 6.14/00
    • Fix Version/s: 6.16/00, 6.14/04
    • Component/s: Core Libraries
    • Labels:
      None
    • Environment:

      affects all OSes/HW.

      Description

      the TBits::operator~() must be declared const since it returns a negated copy of itself via a temporary variable. this is quite annoying since if TBits is, eg returned from somewhere as const TBits&, one can never use it in bitwise operations involving negation...

        Attachments

          Activity

            People

            Assignee:
            axel Axel Naumann
            Reporter:
            dveberic Darko Veberic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Actual End: