]> git.stg.codes - stg.git/blob - include/stg/noncopyable.h
Ticket 37. The stgTime argument added in TariffChangeIsAllowed()
[stg.git] / include / stg / noncopyable.h
1 #ifndef __NONCOPYABLE_H__
2 #define __NONCOPYABLE_H__
3
4 class NONCOPYABLE
5 {
6 protected:
7     NONCOPYABLE() {}
8     virtual ~NONCOPYABLE() {}
9 private:  // emphasize the following members are private
10     NONCOPYABLE(const NONCOPYABLE &);
11     const NONCOPYABLE & operator=(const NONCOPYABLE &);
12 };
13
14 #endif