Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost.Variant] Is there an r-value version of boost::get for variant?
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2017-05-08 10:57:24

2017-05-04 19:40 GMT+03:00 dariomt--- via Boost-users
> As seen in the std docs [1], std::get for variant provides r-value
> overloads.
> Does Boost.Variant have them?
> 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);

Nope, this overload is missing. Please fill a feature request here (do not forget to correctly
specify the component, or the request will be lost for some time).

Or even make a pull request here
if you fell yourself confident and wish to see your name in the
Boost's changelog for the next release ;)

Best regards,
Antony Polukhin

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at