Opened 9 years ago
Closed 8 years ago
#9655 closed Bugs (fixed)
Error for visitors returning a moveable-but-not-copyable object
| Reported by: | Owned by: | ebf | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | variant |
| Version: | Boost 1.55.0 | Severity: | Problem |
| Keywords: | rvalue, visitor | Cc: |
Description
I noticed that there is an error in boost::variant if one uses the visitor pattern and if the return type of the visitor does not posess a copy constructor but instead a move constructor. I've attached a small sample script that shows this behaviour.
Attachments (1)
Change History (3)
by , 9 years ago
comment:1 by , 9 years ago
| Summary: | Error for visitors returning a rvalue → Error for visitors returning a moveable-but-not-copyable object |
|---|
comment:2 by , 8 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
This issue has been fixed in Boost 1.56
Note:
See TracTickets
for help on using tickets.

A small sample script that doesn't compile with gcc 4.8.2 and clang 3.4