Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Patterns/Singleton.hpp

    r6d574a rc3dbe0  
    99#define SINGLETON_HPP_
    1010
     11#include <cassert>
    1112#include <boost/thread.hpp>
    1213
    13 #include "Helpers/Assert.hpp"
    1414#include "defs.hpp"
    1515
     
    181181
    182182    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");
    184184    }
    185185  };
     
    191191  struct creator_t<creator_T,false>{
    192192    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");
    195194    }
    196195    inline static void set(ptr_t& dest,creator_T* src){
Note: See TracChangeset for help on using the changeset viewer.