Skip to content

[ATOOLS] Fix compilation of ATOOLS/Org/Getter_Function.H with C++20

Description

C++20 made it invalid to use simple-template-ids for constructors and destructors: https://eel.is/c++draft/diff.cpp17.class#2

GCC 11 and later throw an error on this. This is a problem because it means Sherpa headers cannot be included into C++20 compilation units. The proposed changes fixes the problem.

Additional Checklist Items

  • I have updated documentation as needed
  • I considered if this should be cherry-picked/ported somewhere else (rel-2-x or master), and if yes, opened a corresponding issue or MR

Merge request reports