mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
default the move special functions
This commit is contained in:
parent
894e6835e6
commit
7920b1086b
@ -39,10 +39,10 @@ namespace ue2 {
|
|||||||
/** \brief Class that makes derived classes non-copyable. */
|
/** \brief Class that makes derived classes non-copyable. */
|
||||||
struct noncopyable {
|
struct noncopyable {
|
||||||
noncopyable() = default;
|
noncopyable() = default;
|
||||||
// Copy constructor.
|
|
||||||
noncopyable(const noncopyable &) = delete;
|
noncopyable(const noncopyable &) = delete;
|
||||||
// Copy-assignment operator.
|
noncopyable(noncopyable &&) = default;
|
||||||
noncopyable &operator=(const noncopyable &) = delete;
|
noncopyable &operator=(const noncopyable &) = delete;
|
||||||
|
noncopyable &operator=(noncopyable &&) = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace ue2
|
} // namespace ue2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user