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

template arguments deduction not working in Python

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.08/00
    • Fix Version/s: 6.10/00, 6.08/02
    • Component/s: PyROOT
    • Labels:
      None
    • Environment:

      LHCb tests

      Description

      This simple test works with ROOT 6.06/02 and does not behave correctly with ROOT 6.08/00:

      • 6.06

        >>> import cppyy
        >>> cppyy.get_version()
        '6.06/02'
        >>> cppyy.gbl.gInterpreter.Declare('''namespace Gaudi { template<typename A, typename B> A f(A a, B b) { return a+b; } }''')
        True
        >>> cppyy.gbl.Gaudi.f(cppyy.gbl.std.string('abc'), cppyy.gbl.std.string('123'))
        'abc123'

      • 6.08

        >>> import cppyy
        >>> cppyy.get_version()
        '6.08/00'
        >>> cppyy.gbl.gInterpreter.Declare('''namespace Gaudi { template<typename A, typename B> A f(A a, B b) { return a+b; } }''')
        True
        >>> cppyy.gbl.Gaudi.f(cppyy.gbl.std.string('abc'), cppyy.gbl.std.string('123'))
        <ROOT.MethodProxy object at 0x7f66c6ca0f50>

        Attachments

          Activity

            People

            • Assignee:
              mato Pere Mato Vila
              Reporter:
              clemenci Marco Clemencic
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: