aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Common/je_noncopyable.h
blob: eff7121a22d7c0ee3d554b87c8fc91415e65576f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __JE_NONCOPYABLE_H__
#define __JE_NONCOPYABLE_H__

namespace JinEngine
{

    ///
    /// Class inherites this could not be copied.
    ///
    class Noncopyable
    {
    public:
        Noncopyable(void) { }
        virtual ~Noncopyable(void) { }

    private:
        Noncopyable(const Noncopyable& other);
        Noncopyable& operator=(const Noncopyable& other);

    };

} // namespace JinEngine

#endif