|
Boost Users : |
Subject: [Boost-users] [Boost.Variant] Is there an r-value version of boost::get for variant?
From: dariomt_at_[hidden]
Date: 2017-05-04 16:40:13
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);
Thanks in advance!
[1] http://en.cppreference.com/w/cpp/utility/variant/get
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net