blob: d30a5b20b90e4d439d58fbf154c81803445b9c23 (
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
25
26
27
28
29
30
31
32
33
34
|
/**-*-C++-*-
* \file
* \author Guillaume Papin <guillaume.papin@epitech.eu>
*
* \brief NonCopyable class like in Boost.
*
* \see http://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Non-copyable_Mixin
*
* This file is distributed under the GNU General Public License. See
* COPYING for details.
*/
#ifndef IRONY_MODE_SERVER_SUPPORT_NONCOPYABLE_H_
#define IRONY_MODE_SERVER_SUPPORT_NONCOPYABLE_H_
namespace util {
class NonCopyable {
protected:
NonCopyable() {
}
// Protected non-virtual destructor
~NonCopyable() {
}
private:
NonCopyable(const NonCopyable &);
NonCopyable &operator=(const NonCopyable &);
};
} // ! namespace util
#endif /* !IRONY_MODE_SERVER_SUPPORT_NONCOPYABLE_H_ */
|