Why is this variadic function ambiguous?

后端 未结 3 1573
孤街浪徒
孤街浪徒 2020-12-11 09:48

This is related to my earlier post. I\'d like to know why one attempted solution didn\'t work.

template              /* A */
size_t num_         


        
3条回答
  •  眼角桃花
    2020-12-11 10:21

    The problem here is that also catches empty lists, so since you have an empty overload as the recursion anchor, it sees both and does not know which to chose.

提交回复
热议问题