Changeset 97f035 for molecuilder/src/Patterns/Singleton_impl.hpp
- Timestamp:
- Mar 11, 2010, 3:17:29 PM (16 years ago)
- Children:
- 1e0785
- Parents:
- e9f2e1
- File:
-
- 1 edited
-
molecuilder/src/Patterns/Singleton_impl.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/Patterns/Singleton_impl.hpp
re9f2e1 r97f035 77 77 } 78 78 79 template<class T, bool _may_create> 80 Singleton<T,_may_create>::Singleton(){/* empty */} 81 82 // private copy constructor to avoid unintended copying 83 template <class T, bool _may_create> 84 Singleton<T,_may_create>::Singleton(const Singleton<T,_may_create>&){ 85 assert(0 && "Copy constructor of singleton template called"); 86 } 87 79 88 /** 80 89 * This define allows simple instantiation of the necessary singleton functions … … 121 130 122 131 template <class T,bool _may_create> 123 typename Singleton<T,_may_create>::ptr_t& Singleton<T,_may_create>::ptr_t::operator=( typename Singleton<T,_may_create>::ptr_t& rhs){132 typename Singleton<T,_may_create>::ptr_t& Singleton<T,_may_create>::ptr_t::operator=(const typename Singleton<T,_may_create>::ptr_t& rhs){ 124 133 if(&rhs!=this){ 125 134 delete content;
Note:
See TracChangeset
for help on using the changeset viewer.
