GameKit  0.0.1a
C++ gamedev tools
NonCopyable.hpp
Go to the documentation of this file.
1 /*
2  * =====================================================================================
3  *
4  * Filename: NonCopyable.hpp
5  *
6  * Description:
7  *
8  * Created: 12/06/2018 22:23:46
9  *
10  * Author: Quentin Bazin, <quent42340@gmail.com>
11  *
12  * =====================================================================================
13  */
14 #ifndef GK_NONCOPYABLE_HPP_
15 #define GK_NONCOPYABLE_HPP_
16 
17 namespace gk {
18 
19 class NonCopyable {
20  protected:
21  NonCopyable() = default;
22  NonCopyable(const NonCopyable &) = delete;
23 
24  const NonCopyable &operator=(const NonCopyable &) = delete;
25 };
26 
27 }
28 
29 #endif // GK_NONCOPYABLE_HPP_
NonCopyable()=default
const NonCopyable & operator=(const NonCopyable &)=delete