Last change
on this file since 18 was 3, checked in by sgosseli, 12 years ago |
- Add the existing Pacpus files from pacpusdev and pacpuscore.
- Provide a clean build system based on multiple CMake files.
|
File size:
449 bytes
|
Line | |
---|
1 | #ifndef DEF_NON_COPYABLE_HPP
|
---|
2 | #define DEF_NON_COPYABLE_HPP
|
---|
3 |
|
---|
4 | namespace pacpus
|
---|
5 | {
|
---|
6 | /** NonCopyable
|
---|
7 | * @brief Derive your own class from noncopyable when you want to prohibit copy construction and copy assignment.
|
---|
8 | */
|
---|
9 | class NonCopyable
|
---|
10 | {
|
---|
11 | protected:
|
---|
12 | NonCopyable() {}
|
---|
13 | ~NonCopyable() {}
|
---|
14 |
|
---|
15 | private:
|
---|
16 | NonCopyable(NonCopyable const&);
|
---|
17 | NonCopyable& operator=(NonCopyable const&);
|
---|
18 | };
|
---|
19 | }
|
---|
20 |
|
---|
21 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.