Import Geant4 10.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2017-12-08 12:52:30 +01:00
parent 98e455a940
commit fc6af9e721
2166 changed files with 276760 additions and 100873 deletions
+2 -1
View File
@@ -51,7 +51,8 @@ inline bool to(const std::string& a_s,T& a_v,const T& a_def = T()) {
template <class T>
inline bool to(T& a_field,const std::string& a_s,bool& a_changed){
T old = a_field;
if(!tools::to(a_s,a_field)) {a_field = old;a_changed=false;return false;}
//if(!tools::to(a_s,a_field)) {a_field = old;a_changed=false;return false;}
if(!to(a_s,a_field)) {a_field = old;a_changed=false;return false;}
a_changed = a_field==old?false:true;
return true;
}