mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-06 06:19:52 +08:00
19 lines
329 B
C++
19 lines
329 B
C++
#ifndef NONCOPYABLE_H
|
|
#define NONCOPYABLE_H
|
|
|
|
namespace vnotex
|
|
{
|
|
class Noncopyable
|
|
{
|
|
protected:
|
|
Noncopyable() = default;
|
|
|
|
virtual ~Noncopyable() = default;
|
|
|
|
Noncopyable(const Noncopyable&) = delete;
|
|
Noncopyable &operator=(const Noncopyable&) = delete;
|
|
};
|
|
}
|
|
|
|
#endif // NONCOPYABLE_H
|