]> git.stg.codes - stg.git/blob - include/noncopyable.h
Exclude legacy hostallow.lib from compilation
[stg.git] / include / 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