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. */
|
||||
struct noncopyable {
|
||||
noncopyable() = default;
|
||||
// Copy constructor.
|
||||
noncopyable(const noncopyable &) = delete;
|
||||
// Copy-assignment operator.
|
||||
noncopyable(noncopyable &&) = default;
|
||||
noncopyable &operator=(const noncopyable &) = delete;
|
||||
noncopyable &operator=(noncopyable &&) = default;
|
||||
};
|
||||
|
||||
} // namespace ue2
|
||||
|
Loading…
x
Reference in New Issue
Block a user