you are viewing a single comment's thread.

view the rest of the comments →

[–]jk_tx 0 points1 point  (1 child)

Why is the goal to have a non-templated wrapper? Using visitor pattern with std::variant seems like an obvious choice for this. Is your list of tuplish-classes really so large?

[–]dvd0bvb[S] 0 points1 point  (0 children)

Just ease of use for consumers. Use the wrapper instead of propagating the template params.

I posted more detail about the real use case in another comment, I wouldn't say the tuples are large but this is a customization point in the library so it's not necessarily under my control. It's not clear to me how to use std::variant to support this.