Unuk/trunk/src/libUnuk/Static.h
Rtch90 d6d139d7c4 Time to get messy!
Just a small commit before I break everything and wished I had it backed up.

-- Change : README to correspond with the GPLv2 licence as the codebase is now public.
-- Add    : Static.h to enable me to stop classes from being copied.
2011-10-14 14:57:11 +01:00

23 lines
424 B
C++

#ifndef _STATIC_H_
#define _STATIC_H_
/*
* Inheriting from this class will make the class uncopyable.
* It is useful to do this because a lot of the time we won't
* want to be able to copy stuff, like the window or the game class.
*
* I probably chose a bad name for this.
*
*/
class Static {
protected:
Static() {}
~Static() {}
private:
Static(const Static&);
Static& operator=(const Static &);
};
#endif