Opened 5 years ago
Closed 5 years ago
#13018 closed Feature Requests (fixed)
r-value overload for boost::get on boost::variant
| Reported by: | 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 , 5 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 5 years ago
| Milestone: | To Be Determined → Boost 1.65.0 |
|---|
comment:3 by , 5 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.

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