387 | | // template<class T> static void from_setting ( T &variable_to_load, const Setting &element ) { |
388 | | // std::string msg = "UIException: from_setting is not implemented for type "; |
389 | | // try{ |
390 | | // variable_to_load.from_setting(element); |
391 | | /* } catch (...){ |
392 | | msg += typeid ( T ).name(); |
393 | | msg += '.'; |
394 | | throw UISettingException ( msg, element ); |
395 | | }*/ |
396 | | // } |
397 | | |
| 387 | template<class T> static void from_setting ( T &variable_to_load, const Setting &element ) { |
| 388 | std::string msg = "UIException: from_setting is not implemented for type "; |
| 389 | try{ |
| 390 | variable_to_load.from_setting(element); |
| 391 | } catch (...){ |
| 392 | msg += typeid ( T ).name(); |
| 393 | msg += '.'; |
| 394 | throw UISettingException ( msg, element ); |
| 395 | } |
| 396 | } |
| 397 | */ |