You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
G4CMP/library/src/G4CMPConfigManager.cc:111:44: error: ‘Register’ is not a member of ‘G4PhysicsModelCatalog’
Not sure how to fix this one right away.
G4String changes
substr
Also, errors with G4String which no longer has the implicit conversion operator taking two integers:
/G4CMP/library/src/G4CMPConfigManager.cc:169:11: error: no match for call to ‘(G4String) (int, int)’
if (name(0,3) == "lin") setNIEL(new G4CMPLindhardNIEL);
Apologies for not replying; we haven't used GitHub issues for G4CMP, and I'm not consistently getting notifications about them. The G4CMP package has not been migrated for consistency with Geant4 11 at all. There are multiple interface changes (besides the two you found) which make such a migration irreversable. For now, we're keeping it at Geant4 10.7, for compatibility with the main experimental users. I'll leave this issue open as a reminder.
G4PhysicsModelCatalog
The latest G4 version changed the
G4PhysicsModelCatalog
interfacelatest: https://geant4.kek.jp/Reference/11.2.0/classG4PhysicsModelCatalog.html
v10.05: https://geant4.kek.jp/Reference/10.05/classG4PhysicsModelCatalog.html
Not sure how to fix this one right away.
G4String changes
substr
Also, errors with
G4String
which no longer has the implicit conversion operator taking two integers:latest: https://geant4.kek.jp/Reference/11.2.0/classG4String.html
v10.05: https://geant4.kek.jp/Reference/10.05/classG4String.html
I suggest using
substr
https://en.cppreference.com/w/cpp/string/basic_string/substr(int,int) -> .substr(int,int)
index
Similar issue with new G4String. Can replace with
find
..index(args) -> .find(args)
Index is just wrapper on https://en.cppreference.com/w/cpp/string/basic_string/find
The text was updated successfully, but these errors were encountered: