<div dir="auto">That&#39;s the point, that it&#39;s messy. The code you showed also didn&#39;t solve the main issue that you need newer mechanisms to make things faster for a specific job. You can&#39;t make tuples store the necessary book keeping information without breaking the ABI. In my case, I had a linear N space overhead as a consequence of keeping some book keeping information for dispatch and the assignment operator implementation. <div dir="auto">Note: I forgot to instantiate the homegenous list in my main() function and I am truly sorry for that. I wrote to code because I couldn&#39;t sleep without trying to prove myself right. It like a relieve now that I feel like I tried my best for today.</div><div dir="auto"><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, 9 Apr 2026, 8:45 pm Bjorn Reese via Std-Proposals, &lt;<a href="mailto:std-proposals@lists.isocpp.org">std-proposals@lists.isocpp.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 4/9/26 14:54, Muneem via Std-Proposals wrote:<br>
<br>
&gt; The main point is that decentralized features always win because each <br>
&gt; focuses on one, right now, we are using metaprogramming for everything <br>
&gt; and it&#39;s a mess! (Look above!!)<br>
<br>
Simon was suggesting subscript operator for std::tuple, which less messy<br>
than building your own tuple type. See<br>
<br>
   <a href="https://godbolt.org/z/x74E6x181" rel="noreferrer noreferrer" target="_blank">https://godbolt.org/z/x74E6x181</a><br>
<br>
Simon also suggested that std::variant should be extended to support<br>
references, so we can avoid copying.<br>
<br>
Having said that, I do not believe that it is a good idea to make<br>
std::tuple dependent on std::variant. As we have to use std::visit to<br>
access the data inside the std::variant anyways, I prefer an extension<br>
to std::visit (or a new function) that takes a visitor, a tuple-like<br>
object, and an index. I have posted a proof of concept for this<br>
elsewhere in this discussion.<br>
<br>
-- <br>
Std-Proposals mailing list<br>
<a href="mailto:Std-Proposals@lists.isocpp.org" target="_blank" rel="noreferrer">Std-Proposals@lists.isocpp.org</a><br>
<a href="https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals" rel="noreferrer noreferrer" target="_blank">https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals</a><br>
</blockquote></div>

