Skip to content

Rename AmpGen::typeof to type_of to avoid clash with a GNU C extension

Marco Clemencic requested to merge ampgen-dd4hep-compat into master

When building Gauss on top an an LHCb that uses Detector and DD4hep we get a spurious -std=gnu++17 compiler option which has the side effect of enabling some GNU extensions to C and C++ that are not enabled by just -std=c++17.

In most cases this is not a problem, but AmpGen defined AmpGen::typeof which clashes with the GNU C extension typeof.

This MR renames the AmpGen helper to type_of to avoid the clash.

Needed for LHCb!3453 (merged)

Edited by Marco Clemencic

Merge request reports