Opened 11 years ago
Closed 11 years ago
#6673 closed Bugs (fixed)
shared_lock: move assign doesn't works with c++11
| Reported by: | viboes | Owned by: | viboes |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | thread |
| Version: | Boost Development Trunk | Severity: | Problem |
| Keywords: | Cc: |
Description
When move semantics is supported by the compiler the shared_lock move assign doesn't works because boost::move is missing
shared_lock& operator=(shared_lock<Mutex> && other)
{
shared_lock temp(other);
swap(temp);
return *this;
}
The temp must constructor must use boost::move
shared_lock& operator=(shared_lock<Mutex> && other)
{
shared_lock temp(boost::move(other));
swap(temp);
return *this;
}
The same applies to the other move assignments.
Change History (2)
comment:1 by , 11 years ago
| Version: | Boost 1.49.0 → Boost Development Trunk |
|---|
comment:2 by , 11 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

(In [77291]) Thread: Fix #6673 and partial fix for 6671, 6672, 6675 which need to add the documentation and test