godot_voxel/util/non_copyable.h

18 lines
317 B
C
Raw Normal View History

2021-12-28 18:30:34 +00:00
#ifndef ZYLANN_NON_COPYABLE_H
#define ZYLANN_NON_COPYABLE_H
namespace zylann {
class NonCopyable {
protected:
NonCopyable() = default;
~NonCopyable() = default;
NonCopyable(NonCopyable const &) = delete;
void operator=(NonCopyable const &x) = delete;
};
} // namespace zylann
#endif // ZYLANN_NON_COPYABLE_H