Changeset 358 for bdm/user_info.h

Show
Ignore:
Timestamp:
06/08/09 15:22:12 (15 years ago)
Author:
smidl
Message:

compilation fixes for Linux

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/user_info.h

    r357 r358  
    1616using namespace libconfig; 
    1717 
    18 #define UIREGISTER(class_name) template<> Particular_UI<class_name>& Particular_UI<class_name>::ui = Particular_UI<class_name>(#class_name) 
     18#ifdef BDMLIB  
     19#define UIREGISTER(class_name) template<> const Particular_UI<class_name>& Particular_UI<class_name>::ui = Particular_UI<class_name>(#class_name)  
     20#else 
     21#define UIREGISTER(class_name) 
     22#endif 
    1923 
    2024#define ASSERT_UITYPE(S,Type) it_assert_debug(S.getType()==Setting::Type, string("Wrong setting type, see input path \"")+string(S.getPath())+string("\"")) 
     
    314318template<typename T> class Particular_UI : private UI 
    315319{ 
    316         // to permit acces to the Particular_UI<T>::ui to the UI class 
    317         friend UI; 
     320        public: 
    318321 
    319322        //! default constructor, which is intentionally declared as private 
     
    324327        //! the only instance of this class (each type T has its own instance) 
    325328        //! which is used as a factory for processing related UI 
    326         static Particular_UI<T>& ui;     
     329        static const Particular_UI<T>& ui;       
    327330 
    328331        bdmroot* new_instance() const