split variadic template arguments

前端 未结 5 2325
旧巷少年郎
旧巷少年郎 2020-12-23 18:29

How do I split variadic template arguments in two halves? Something like:

template  struct a {
  std::array  p, q;
  template <         


        
5条回答
  •  臣服心动
    2020-12-23 19:18

    I know this question is quite old, but I found it only yesterday while looking for a solution to a very similar problem. I worked out a solution myself and ended up writing a small library which I believe does what you want. You can find a description here if you are still interested.

提交回复
热议问题