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

Overloaded arithmetic operators for 2d and 3d histograms have parameters of type "lvalue-reference to non-const"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 6.12/06
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      None
    • Environment:

      any

    • Development:

      Description

      TH2D operator* (TH2D &h1, TH2D &h2)
      TH2D operator+ (TH2D &h1, TH2D &h2)
      TH2D operator- (TH2D &h1, TH2D &h2)
      TH2D operator/ (TH2D &h1, TH2D &h2)
      

       
      The parameter types does not allow to write expressions with more than one arithmetic operator involved, such as `(hist1 - hist2) / hist2`.

        Attachments

          Activity

            People

            • Assignee:
              moneta Lorenzo Moneta
              Reporter:
              anerokhi Andrey Erokhin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: