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

Incorrect parsing of std::function<std::complex<double>(double,double)>

    XMLWordPrintable

    Details

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

      LCG_97

    • Development:

      Description

      If  std::function<std::complex<double>(double,double)> type (and three-argument form) is used in the class,  it is incorrectly parsed,  while single-argument form is OK 

      see attached python script 

      >  python ./tst_77.py
      ROOT version 6.20/02
      PYTHON version sys.version_info(major=2, minor=7, micro=16, releaselevel='final', serial=0)

      RooFit v3.60 – Developed by Wouter Verkerke and David Kirkby
      Copyright (C) 2000-2013 NIKHEF, University of California & Stanford University
      _All rights reserved, please read http://roofit.sourceforge.net/license.txt_

      /cvmfs/sft.cern.ch/lcg/views/LCG_97/x86_64-centos7-gcc9-opt/lib/ROOT.py:663: RuntimeWarning: creating converter for unknown type "function<complex<double>,double)>"
      attr = _root.LookupCppEntity( name, PyConfig.ExposeCppMacros )
      /cvmfs/sft.cern.ch/lcg/views/LCG_97/x86_64-centos7-gcc9-opt/lib/ROOT.py:663: RuntimeWarning: creating converter for unknown type "function<complex<double>,double,double)>"
      attr = _root.LookupCppEntity( name, PyConfig.ExposeCppMacros )

       

      And the output contains incorrecly parsed type name.

      Note that single-argument type:  std::function<std::complex<double>(double)> is parsed  properly 

       

      I see problem with LCG_97 version 

       

        Attachments

          Activity

            People

            Assignee:
            etejedor Enric Tejedor Saavedra
            Reporter:
            ibelyaev Vanya Belyaev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: