C++ Logo

std-proposals

Advanced search

Re: [std-proposals] C-style array specialization for std::get

From: Paolo Di Giglio <p.digiglio91_at_[hidden]>
Date: Thu, 14 Apr 2022 17:57:29 +0200
Hi Jens,

> I think there is a already a mapping from "const T" to "T" for
> tuple_size and tuple_element, so you don't need those specializations.

The reason why you need the "T const[N]" specializations is because such
mapping exists. I explain that in section 4.1.1. Please have a look and
let me know what you think.

I introduced "T volatile[N]" and "T volatile const[N]" specializations
because similar mappings from "T volatile" and "T volatile const" to "T"
existed up to C++20. I'll remove these specializations from my paper
since the mappings will be removed in C++23.

Thanks,
Paolo

Received on 2022-04-14 15:54:23