Changeset 38:8433bff5a75a in rrlib_util


Ignore:
Timestamp:
05.01.2012 14:45:52 (8 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Phase:
public
Message:

Changed policy order in tSingletonHolder as it seems more likely that someone would want to change lifetime instead of creation

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • patterns/singleton/tSingletonHolder.h

    r34 r38  
    7070template < 
    7171typename T, 
    72 template <typename> class TCreationPolicy = singleton::CreateUsingNew, 
    73 template <typename> class TLifetimePolicy = singleton::DefaultLifetime 
     72template <typename> class TLifetimePolicy = singleton::DefaultLifetime, 
     73template <typename> class TCreationPolicy = singleton::CreateUsingNew 
    7474> 
    7575class tSingletonHolder : public boost::noncopyable 
  • test/test_singleton_pattern.cpp

    r34 r38  
    7979  } 
    8080}; 
    81 typedef tSingletonHolder<tLogImplementation, singleton::CreateStatic, singleton::PhoenixSingleton> tLog; 
    82 //typedef tSingletonHolder<tLogImplementation, singleton::CreateStatic, singleton::NoDestruction> tLog; 
     81typedef tSingletonHolder<tLogImplementation, singleton::PhoenixSingleton> tLog; 
     82//typedef tSingletonHolder<tLogImplementation, singleton::NoDestruction> tLog; 
    8383 
    8484struct tKeyboardImplementation 
Note: See TracChangeset for help on using the changeset viewer.