2
0
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:
Nat Goodspeed
2016-02-08 09:16:49 -05:00

View File

@@ -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 };
};