Use brace-enclosed initializer lists in a variadic template?

后端 未结 2 694
无人及你
无人及你 2021-01-18 07:43

I\'m trying to use brace-enclosed initializer lists in a variadic template function, but the compiler complains... am I asking too much or did I do something wrong?

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-18 08:22

    A brace enclosed initializer list cannot be forwarded, so you are unfortunately out of luck.

提交回复
热议问题