NonCopyable: Remove private access specifier
This isn't necessary, as the member functions are deleted. If someone tries to perform a copy, the compiler will now indicate that the member functions/constructors are deleted, rather than inaccessible.
This commit is contained in:
parent
5d74e02286
commit
2ce6b449d1
|
@ -11,7 +11,6 @@ protected:
|
||||||
constexpr NonCopyable() = default;
|
constexpr NonCopyable() = default;
|
||||||
~NonCopyable() = default;
|
~NonCopyable() = default;
|
||||||
|
|
||||||
private:
|
|
||||||
NonCopyable(const NonCopyable&) = delete;
|
NonCopyable(const NonCopyable&) = delete;
|
||||||
NonCopyable& operator=(const NonCopyable&) = delete;
|
NonCopyable& operator=(const NonCopyable&) = delete;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue