#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!

Change History (3)

comment:1 Changed 20 months ago by Antony Polukhin

Owner: changed from ebf to Antony Polukhin
Status: newassigned

comment:2 Changed 19 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 15 months ago by Antony Polukhin

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.