core: Remove template parameters of in-class constructors
With C++20, these template parameters of constructor declarations or definitions inside a class declaration are not possible anymore. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100997#c1
Removing them should be backwards compatible with C++17.