Skip to content

MASSWITHHYPOTHESES functor regression

The MASSWITHHYPOTHESES functor stopped working in lines that previously ran successfully. The error lines from the dump are

/data/lhcb/users/cervenkov/dev/lhcb-stack/Rec/InstallArea/x86_64_v2-centos7-gcc11-opt/include/Functors/Composite.h:264:13: error: invalid operands to binary expr
ession ('float' and 'SIMDWrapper::scalar::float_v')                                                                                                              
          E += sqrt( threeMomentum( *combination.daughters()[idau] ).mag2()
/cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/11.1.0-e80bf/x86_64-centos7/include/c++/11.1.0/type_traits:2885:23: error: no matching function for call to object of ty
pe 'const Functors::Composite::MassWithHypotheses<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >'        
      return noexcept(std::declval<_Fn>()(std::declval<_Args>()...));
/cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/11.1.0-e80bf/x86_64-centos7/include/c++/11.1.0/type_traits:2891:2: error: non-type template argument is not a constant e
xpression                                                                                                                                                        
        std::__call_is_nt<_Fn, _Args...>(typename _Result::__invoke_type{})
/cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/11.1.0-e80bf/x86_64-centos7/include/c++/11.1.0/bits/invoke.h:61:14: error: no matching function for call to object of ty
pe 'const Functors::Composite::MassWithHypotheses<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >'        
    { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); }

A sample line that used to work can be found here (the functor is used in this imported module).