Modify

Opened 5 months ago

Closed 2 hours ago

#13018 closed Feature Requests (fixed)

r-value overload for boost::get on boost::variant

Reported by: dariomt@… Owned by: Antony Polukhin
Milestone: Boost 1.65.0 Component: variant
Version: Boost 1.63.0 Severity: Optimization
Keywords: Cc:

Description

As seen in the std docs (http://en.cppreference.com/w/cpp/utility/variant/get), std::get for variant provides r-value overloads.

I'm interested in having this overload in particular:

template<typename U, typename T1, typename T2, ..., typename TN>

U && get(variant<T1, T2, ..., TN> && operand);

Thanks in advance!

Attachments (0)

Change History (3)

comment:1 Changed 5 months ago by Antony Polukhin

Owner: changed from ebf to Antony Polukhin
Status: newassigned

comment:2 Changed 4 months ago by Antony Polukhin

Milestone: To Be DeterminedBoost 1.65.0

Fixed by Albert Sverdlov in b108cfb8 in develop branch. Will be merged to the master as soon as the tests cycle.

comment:3 Changed 2 hours ago by Antony Polukhin

Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Antony Polukhin.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.