Opened 5 years ago

Closed 5 years 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!

Change History (3)

comment:1 by Antony Polukhin, 5 years ago

Owner: changed from ebf to Antony Polukhin
Status: newassigned

comment:2 by Antony Polukhin, 5 years ago

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 by Antony Polukhin, 5 years ago

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