Why does an instantiation of a user-defined type with a template argument compile even when no types are passed?

前端 未结 0 542
悲&欢浪女
悲&欢浪女 2020-11-30 10:03

I\'ve thought that in a user-defined template class, the compiler would always catch incorrect template instantiations at compile time.

However, the below code compil

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