mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-19 02:12:24 +00:00
Merge branch 'develop' of github.com:olk/boost-fiber into develop
This commit is contained in:
@@ -18,10 +18,19 @@ struct A {
|
||||
A() = default;
|
||||
|
||||
A( A const&) = delete;
|
||||
A( A &&) = default;
|
||||
|
||||
A & operator=( A const&) = delete;
|
||||
A & operator=( A &&) = default;
|
||||
|
||||
A( A && other) :
|
||||
value{ other.value } {
|
||||
other.value = 0;
|
||||
}
|
||||
|
||||
A & operator=( A && other) {
|
||||
if ( this == & other) return * this;
|
||||
value = other.value;
|
||||
other.value = 0;
|
||||
return * this;
|
||||
}
|
||||
|
||||
int value{ 0 };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user