How to work around std::get<>()'s lack of concurency specification
Push a proposal for
std::get<>(std::tuple)
to provide guarantees similar tostd::vector<>
, and document the fact that the code is only valid as of a yet unreleased version of the the standard.
I think this is the way to go, as it provides value for the entire C++ community and should not be a burden on implementers. It is also an excellent opportunity to write your first proposal.
I suggest doing that, and for now assuming that this will work, even though it is UB. If your software is super-critical (e.g. flight control system) and you want to be 100% sure that you are not relying on something that could break in the future... then implement your own tuple
.