Opened 9 years ago

Closed 8 years ago

#9655 closed Bugs (fixed)

Error for visitors returning a moveable-but-not-copyable object

Reported by: Raffael Casagrande <raffael@…> 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)

main.cpp (366 bytes ) - added by Raffael Casagrande <raffael@…> 9 years ago.
A small sample script that doesn't compile with gcc 4.8.2 and clang 3.4

Download all attachments as: .zip

Change History (3)

by Raffael Casagrande <raffael@…>, 9 years ago

Attachment: main.cpp added

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

comment:1 by anonymous, 9 years ago

Summary: Error for visitors returning a rvalueError for visitors returning a moveable-but-not-copyable object

comment:2 by Antony Polukhin, 8 years ago

Resolution: fixed
Status: newclosed

This issue has been fixed in Boost 1.56

Note: See TracTickets for help on using tickets.