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

Implement I/O for unique_ptr<const T>

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: master
    • Fix Version/s: None
    • Component/s: I/O
    • Labels:
      None
    • Environment:

      Does not depend on environment.

    • Bug / Feature:
      Feature request
    • Severity:
      2 - Minor
    • Development:

      Description

      A simple helper class like

      class XXX {
      ...
        std::unique_ptr<TH1> fHisto;
      };
      

      can be serialised in ROOT.
      However, changing to std::unique_ptr<const TH1> fHisto; leads to

      Error in <TStreamerInfo::Build>: XXX, unknown type: const TH1 fHisto
      

      Having I/O for const types would be helpful.

        Attachments

          Activity

            People

            • Assignee:
              dpiparo Danilo Piparo
              Reporter:
              shageboe Stephan Hageboeck
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                PlannedEnd:
                PlannedStart:
                Actual Start:
                Actual End: