Opened 8 years ago

Closed 8 years ago

#10218 closed Bugs (fixed)

variant::apply_visitor does not work with move-only return types

Reported by: Christopher Moore <crmoore@…> Owned by: ebf
Milestone: To Be Determined Component: variant
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc: nknotts@…

Description

Applying a visitor that returns a move-only type (such as std::unique_ptr<>) fails to compile.

Tested with clang 3.4 and gcc 4.8 on OS X.

Attachments (1)

main.cpp (594 bytes ) - added by Christopher Moore <crmoore@…> 8 years ago.
Minimal example of the issue

Download all attachments as: .zip

Change History (2)

by Christopher Moore <crmoore@…>, 8 years ago

Attachment: main.cpp added

Minimal example of the issue

comment:1 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.