Show
Ignore:
Timestamp:
05/06/10 17:42:05 (14 years ago)
Author:
smidl
Message:

traffic agents -- pro BDM > r904

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/base/user_info.h

    r907 r927  
    380380                        from_setting ( array_to_load ( i ), link.result[i] ); 
    381381        } 
    382  
     382/* 
    383383        //! This is dummy version of the from_setting method for other, unsupported types. It just throws an exception. 
    384384        //! 
    385385        //! At the moment, this is the only way how to compile the library without obtaining the compiler error c2665. 
    386386        //! The exception can help to find the place where the template is misused and also to correct it. 
    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*/ 
    398398 
    399399protected: