Opened 5 months ago

Last modified 4 months ago

#13018 assigned Feature Requests

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:


As seen in the std docs (, 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 (2)

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.

Modify Ticket

Change Properties
Set your email in Preferences
as assigned The owner will remain Antony Polukhin.

Add Comment

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

Note: See TracTickets for help on using tickets.