Variadic template aliases as template arguments (part 2)

前端 未结 2 729
难免孤独
难免孤独 2021-02-05 19:14

This is a follow-up of another question. It refers to the same problem (I hope) but uses an entirely different example to illustrate it. The reason is that in the previous examp

2条回答
  •  余生分开走
    2021-02-05 19:46

    This does not answer the question whether the code above is valid, but is a quite pretty workaround that I have found by experimenting shortly after asking the question, and I think is useful to share.

    All that is needed are the following definitions:

    template