Import Geant4 11.1.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2022-07-01 10:44:02 +02:00
parent b3bf75a2a1
commit c07cea1fe0
2172 changed files with 183300 additions and 123938 deletions
+6 -6
View File
@@ -28,15 +28,15 @@ inline bool get_env(const std::string& a_string,std::string& a_value){
template <class T>
inline bool get_env(const std::string& a_string,T& a_v,const T& a_def = T()){
std::string s;
if(!get_env(a_string,s)) {a_v = a_def;return false;}
return to<T>(s,a_v,a_def);
std::string _s;
if(!get_env(a_string,_s)) {a_v = a_def;return false;}
return to<T>(_s,a_v,a_def);
}
inline bool get_env_bool(const std::string& a_string,bool& a_v){
std::string s;
if(!get_env(a_string,s)) return false;
return to(s,a_v);
std::string _s;
if(!get_env(a_string,_s)) return false;
return to(_s,a_v);
}
}