When is nested initializer_list ambiguous, and why does templates affect its behavior?

前端 未结 0 1486
深忆病人
深忆病人 2021-02-03 11:30

I encountered an interesting behavior where templates seem to affect whether a nested std::initializer_list is ambiguous or not. Consider the following example:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题