Changes in src/Patterns/Singleton.hpp [6d574a:c3dbe0]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Patterns/Singleton.hpp
r6d574a rc3dbe0 9 9 #define SINGLETON_HPP_ 10 10 11 #include <cassert> 11 12 #include <boost/thread.hpp> 12 13 13 #include "Helpers/Assert.hpp"14 14 #include "defs.hpp" 15 15 … … 181 181 182 182 inline static void set(creator_T*&,creator_T*){ 183 ASSERT(0,"Cannot set the Instance for a singleton of this type");183 assert(0 && "Cannot set the Instance for a singleton of this type"); 184 184 } 185 185 }; … … 191 191 struct creator_t<creator_T,false>{ 192 192 inline static creator_T* make(){ 193 ASSERT(0, "Cannot create a singleton of this type directly"); 194 return 0; 193 assert(0 && "Cannot create a singleton of this type directly"); 195 194 } 196 195 inline static void set(ptr_t& dest,creator_T* src){
Note:
See TracChangeset
for help on using the changeset viewer.