yes
This commit is contained in:
20
Runtime/Includes/Utils/NonMovable.h
git.filemode.normal_file
20
Runtime/Includes/Utils/NonMovable.h
git.filemode.normal_file
@@ -0,0 +1,20 @@
|
||||
#ifndef __SCOPE_UTILS_NON_MOVABLE__
|
||||
#define __SCOPE_UTILS_NON_MOVABLE__
|
||||
|
||||
namespace Scop
|
||||
{
|
||||
class NonMovable
|
||||
{
|
||||
protected:
|
||||
NonMovable() = default;
|
||||
virtual ~NonMovable() = default;
|
||||
|
||||
public:
|
||||
NonMovable(const NonMovable&) = default;
|
||||
NonMovable(NonMovable&&) noexcept = delete;
|
||||
NonMovable& operator=(const NonMovable&) = default;
|
||||
NonMovable& operator=(NonMovable&&) noexcept = delete;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user