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

new type instdeat of using

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: master
    • Fix Version/s: None
    • Component/s: Core Libraries
    • Labels:
      None
    • Bug / Feature:
      Suggestion
    • Severity:
      3 - Normal
    • Development:

      Description

      RHistUtils.hxx:26

      RCoordaArray as an inheritance class from std::array results in a lot of trouble if you work with std::array, which can be avoided by using

      template<int DIMENSION>
      using CoordArray_t = std::array<double, DIMENSION>;

      which would be more flexible in usage.

      the only drawback would be that CoordArray_t<3>(1,2,3) than is CoordArray_t<3>({1,2,3}).
      Which should be no big problem because mostly you construct it with {1,2,3} implicit as an argument.

      The huge advantage would be that you can write more general libraries and code.

        Attachments

          Activity

            People

            Assignee:
            axel Axel Naumann
            Reporter:
            0b9dc6473546e342d888 Julian Benda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: